Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-09-2003, 03:35 PM   #1
LQ Newbie
Registered: Jan 2003
Posts: 1

Rep: Reputation: 0
Procmail Store Mail Attachment


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

Old 01-09-2003, 11:01 PM   #2
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 354

Rep: Reputation: 93
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.)



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
save mail attachment with procmail graveworm Linux - Networking 2 01-08-2007 09:31 AM
procmail auto-reply for non-wanted attachment file types make Linux - Software 1 09-26-2005 03:52 AM
Removing Attachment With Procmail joseph Linux - Networking 0 02-17-2005 08:32 PM
Store mail local and view with several mail clients... elluva Linux - Software 22 05-11-2004 05:27 PM
mail -a would not work to send e-mail attachment saavik Linux - Networking 3 12-18-2003 10:33 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration