November 23, 2024, 11:30:30 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Mail Attachment Extraction  (Read 5835 times)

Offline Saif

  • Linux Noob !
  • *
  • Posts: 10
Mail Attachment Extraction
« 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

Offline GNUrag

  • Tux Awared
  • **
  • Posts: 41
    • http://tends.ourproject.org/~anurag
Re: Mail Attachment Extraction
« Reply #1 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.

Offline Saif

  • Linux Noob !
  • *
  • Posts: 10
E-mail Attachment Extraction
« Reply #2 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