procmail
[Top] [All Lists]

Re: how to remove one file from attachments?

2007-03-31 09:11:26
On Fri, 30 Mar 2007 13:42:33 +0200, 
bernard(_dot_)schoenacker(_at_)free(_dot_)fr wrote:
Selon Raphael <lilo-(_at_)gmx(_dot_)ch>:

Is there a possibility to "cut" email-attachments named "winmail.dat"
out from messages, that comes in but without touching the rest of the
message (only remove winmail.dat)?

I use the following procmail-rules:

## TNEF Attachments
:0
* ^X-MS-TNEF-Correlator
* ^Subject:\/.*
{
     :0 fhw
     | formail -i
     "Subject: {* -winmail.dat- *} $MATCH"

     # there is the problem to cut the file...
     :0 f
     *
     # cut the file
     # forward the message through the rest of procmail-filters
}

why don't use the ripmime functions ?

you will find some explanation on this subject (URL) :

http://allery.menalto.com/node/7626

Tip:  Actually _try_ any URL you post unless you cut-and-paste from the 
Location: bar.


____________________________________________________________
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>