procmail
[Top] [All Lists]

Re: Detaching e-mail attachment to a folder automatically

2005-06-21 04:18:03
Am 2005-06-21 08:02:32, schrieb mandeep:
Hi,
    I receive a .DAT file as an attachment once or twice a day in my mail.I 
want
to configure procmail so that it automatically detaches the file from the mail
and places it in a specific folder.Could someone please suggest the best 
recipe
to acheive this objective.I haven't used procmail before and urgently need to
sort this out.all help will be much appreciated.many thanks.
Mandeep.

Something like:

  __( '/home/michelle.konzack/.procmailrc' )____________________________
 /
| ####################################################################
| # Filter Attachments from incoming binary-messages
| 
| :0
| * ^To:.*(binaries4michelle|attachments4michelle|files4michelle)@freenet.de
| * ^Content-type.*multipart/mixed
| * B ?? Content-transfer-encoding.*(x-uuencode|base64)
| {
|   :0 ci
|   | /usr/bin/munpack -q -C $HOME/Mail_files/
| 
|   :0
|   .Binaries/
| }
 \______________________________________________________________________

OK, you should adapt it for your needs,
but this is only an example HOW to start.

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>