procmail
[Top] [All Lists]

Re: Separate pipes for header and body?

1998-05-19 03:33:25
On Tue, 19 May 1998 11:36:27 +0200 (SAT),
Dirk Laurie <dirk(_at_)calvyn(_dot_)puk(_dot_)ac(_dot_)za> wrote:
How does one write a recipe that does one thing to the mail header
and another to the body?

Depends on what you want to do to them. Anyhow, the h and b flags are
what you are essentially looking for.

    :0fhw
    | formail -I"X-Header: You have been had"

    :0bw
    | tac # cat backwards

Hope this helps,

/* era */

-- 
 Paparazzi of the Net: No matter what you do to protect your privacy,
  they'll hunt you down and spam you. <http://www.iki.fi/~era/spam/>

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