LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Procmail Store Mail Attachment (https://www.linuxquestions.org/questions/linux-software-2/procmail-store-mail-attachment-40882/)

mark@mark-goebl 01-09-2003 02:35 PM

Procmail Store Mail Attachment
 
Hello,

I am a Newbie with Linux, so please excuse my question (and my english ;-))

I get Fileattachments from a businesspartner. These Mails contains only the attachments (no header, no body).

I need to store each attachment which I recieve in one File.
So I would like to create a unique Name and store the Attachment under that filename.

I've read that I could do so with Procmail, but while testing my only effort was to store every Mail (incl. Header etc.) in the same file and that's not what I need.

Could anybody send me a tip or a small script to do so?

Thanks in advance


Mark

speck 01-09-2003 10:01 PM

I think you're on the right track, but you're missing part of the process. Take a look at ripmime, which will extract the attachments from the file.

After the file is sorted by procmail, you can run "ripmime -i email_file" and it will extract all the attachments with their proper names (as defined by "filename=" in the mime header.)

Speck


All times are GMT -5. The time now is 11:58 AM.