procmail
[Top] [All Lists]

Re: Help with stripping off the body

2003-09-11 00:07:38
I am now using...

: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.

On Thursday, September 11, 2003, at 12:27 PM, Professional Software Engineering wrote:

At 11:11 2003-09-11 +0700, Robert Nicholson wrote:
So I'm trying to strip off the body of the message before forwarding to hotmail.
[snip]

Uhm, why not just deliver the headers?  See 'man procmailrc'

:0h
* ^TOrobert(_at_)elastica\(_dot_)com
! robertnicholson(_at_)hotmail(_dot_)com


Or, if you really feel a need to multi-stage it, this works, even if it is inefficient:

:0
* ^TOrobert(_at_)elastica\(_dot_)com
{
        # discard the body
        :0fbi
        | false

        # deliver what remains
        :0
        ! robertnicholson(_at_)hotmail(_dot_)com
}

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


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