Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => Linux Servers Support => Topic started by: Saif on July 28, 2004, 03:56:13 PM

Title: Mail Attachment Extraction
Post by: Saif on July 28, 2004, 03:56:13 PM
I use sendmail in my Linux Mail Server (RedHat 9.0). I want to extract all incoming attachment of a particular e-mail account (like name@mydomain.com) to a folder (suppose /attachment).

Is there any body can help me to do so.

With thanks and regards

Saif
Title: Re: Mail Attachment Extraction
Post by: GNUrag on August 07, 2004, 01:32:56 PM
Quote from: "Saif"
I use sendmail in my Linux Mail Server (RedHat 9.0). I want to extract all incoming attachment of a particular e-mail account (like name@mydomain.com) to a folder (suppose /attachment).
All the mails on GNU/Linux system are stored in /var/mail/[username] You can directly view the mails from there.   # less /var/mail/[username]
Otherwise if you are also having a pop3 server on the server, then i've written a script in python to extract mails from a pop3 server and save it into proper directories. It can be given as a cron job.
Title: E-mail Attachment Extraction
Post by: Saif on August 08, 2004, 06:34:40 PM
Thanks for your reply
In fact I want to extract attachment of a particular e-mail account and I need to share this in a Windows PC using Samba. Main point of consideration is that these extractions is used to operate some other system

I know with procmail it is possible but do not know how.

Saif