Extract attachments from Mbox throw MIME

Posted by Simeon on Server Fault See other posts from Server Fault or by Simeon
Published on 2011-06-20T14:46:11Z Indexed on 2011/06/20 16:25 UTC
Read the original article Hit count: 330

Filed under:
|
|
|

I am a littlebit frustrated, im working on a project with the aim to build a system witch print automatically e-mail attachments of incoming mails ("E-Mail to Print"-system). I already set up a e-mail server (exim4) which receive perfectly e-mail and stores them to a mbox in /var/mail/ - now I want to extract the attachments out of the mbox file throw MIME to the original .PDF, .DOC, .JPG, .GIF, ... and save them in a directory, from where they get print. After the e-mail attachments got extracted they should be deleted, so they don't get extracted again.

But how can I get this to work? I am not a coder, so I looked for existing scripts and programs but found nothing to work with. Could anyone give me little help - I would be very thankful!

Thanks, Simeon

© Server Fault or respective owner

Related posts about email

Related posts about mime