procmail
[Top] [All Lists]

Re: how to remove one file from attachments?

2007-03-30 04:52:40
Selon Raphael <lilo-(_at_)gmx(_dot_)ch>:

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
}


hi,

why don't use the ripmime functions ?

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

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

kindest regard
bernard



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