procmail
[Top] [All Lists]

how to remove one file from attachments?

2007-03-30 01:11:39
Hello users, 
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)?

Thanks a lot for all ideas and help.
Greetings, Raphael

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
}

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