procmail
[Top] [All Lists]

Re: How to forward a message and strip attachments

2004-12-03 15:09:53
On Fri, 03 Dec 2004 08:55:08 -0800, Professional Software Engineering
<PSE-L(_at_)mail(_dot_)professional(_dot_)org> wrote:

Alternatley, get yourself a program such as "stripmime" and pass all the
messages to be forwarded through it:

http://www.well.com/user/barts/email/mimepart.txt


CONTENT_TYPE=text/plain
INCLUDERC=mimepart.txt

:0c
* BODY_PART ?? .
{
  :0hfw
  | formail -I"Content-Type: text/plain"

  :0bifw
  | echo "$BODY_PART"

  :0
  ! someuser(_at_)blackberry(_dot_)whatever
}

I didn't test that, so I may have botched the filter flags, but it
should be close.

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