procmail
[Top] [All Lists]

Re: Help with stripping off the body

2003-09-11 08:39:32
At 14:03 2003-09-11 +0700, Robert Nicholson wrote:
:0hf
    | $SED -e '/^$/ q' | $SENDMAIL -oi robertnicholson(_at_)hotmail(_dot_)com

I'll change that to your suggestion.

I would still like to know why my first attempt forwarded the complete message including the body.

I was expecting any rule after my filter ran to not see the body.

Well, uh, your *FILTER* is deleting the body part that it never receives. No surprise that it doesn't delete the body if it wasn't handed it.

Look at the longhand form I have (with delivery to false, which simply discards the body, which is a much less expensive solution then piping to sed, which must parse it), which specifically uses the 'b' flag, NOT 'h'.

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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