procmail
[Top] [All Lists]

Re: turning body into header

1998-12-08 15:05:07
Bill Houle asked,

| What I would like is to munge the incoming mail and remove that
| erroneous blank line, merging the Subject back where it belongs.

 :0Bfwh # egrep the body but filter the head
 * ^^([^        ]+:.*$([        ].*$)*)*Subject:
 | formail -X ""

The first set of brackets enclose caret, space, tab, and the second a space
and a tab.  The space after the X in the action line is critical so that
procmail can give formail a null argument separately from "-X", but you may
write it as

 | formail -X ''

if you prefer.

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