Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a Linux- or Windows-based program that can automatically & periodically pull email from a POP3/IMAP server, extract the attachment, and save the attachment to disk?

The scenario: We have an email address dedicated to receiving attachments. Currently someone must manually pull in the email, and extract the attachments to a shared folder. But the volume is increasing, and we want to automate the task.

share|improve this question

How about using a combination of getmail and munpack on Linux?

I'm thinking that you could set up a cron job to use getmail to download all messages to a maildir mailbox directory and then munpack (perhaps invoked by inotify) to extract the attachments from each message.

I dimly remember reading about reading emails with telnet many years ago - I wonder if it is one of those things somebody with proper Linux knowledge could do with a very simple script.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .