bulrush has asked for the wisdom of the Perl Monks concerning the following question:

My system: Perl 5.8.8 on RHEL Linux 5.5.6

Oh wise and wonderful Perl monks who smell like bacon, may I put my sandals at the door and plumb the depths of your bacony wisdom?

I'm wondering if there is a Perl module, or some other freeware for Redhat Linux where, if someone sends a command to an email address, it can send the user back a file depending on the command? Some listservs do this. Example command in the email body:

get filename.txt

will send the file filename.txt back to the user via email. However we would want different subdirectories on the server to serve files to group the various files.

Thank you!

Perl 5.8.8 on Redhat Linux RHEL 5.5.56 (64-bit)
  • Comment on Perl or other free file server via email

Replies are listed 'Best First'.
Re: Perl for other free file server via email
by Corion (Patriarch) on Jul 21, 2014 at 10:04 UTC

    I'm not aware of anything premade for that.

    It shouldn't be too hard to create something that either watches an inbox via Net::IMAP::Client or Mail::Action and then uses MIME::Lite to send an attached file.

    In fact, reading the Mail::Action documentation, it seems that it already implements some commands like *help*, so it shouldn't be too hard to implement *send* from that either.