procmail
[Top] [All Lists]

Re: filter number(_at_)foobar(_dot_)com

1999-08-16 03:24:49
On Sun, 15 Aug 1999 08:05:39 -0500, Philip Guenther 
<guenther(_at_)gac(_dot_)edu>
wrote:
PSE-L(_at_)mail(_dot_)professional(_dot_)org (Professional Software 
Engineering) writes:
At 18:42 1999-08-14 +0200, Christophe Zwecker wrote:
...
And lastly, add a caret '^' before Content in the grep operation.
Why? Because your grep will currently match any line containing
"Content-", whether at the start or not. You'd be better off using
formail to strip these headers, since your grep, even with the
caret, won't distinguish between lines appearing in the header,
and those in the body.
Even worse, it will only remove the first line of a Content-*
header and leave the continued line which will then appear at the
end of the previous header. If this is a multipart message then the
Content-Type: header is most likely continued, so this will not be
an isolated problem.

I thought Christophe wrote that the MIME headers were somehow getting
added at the +end+ of the extracted message? (Doesn't make any sense.
Is this really correct?)

If there are headers at the beginning and you want to get rid of all
of them, perhaps sed '1/^$/d' would be the best solution.

/* era */

-- 
 Too much to say to fit into this .signature anyway: <http://www.iki.fi/era/>
  Fight spam in Europe: <http://www.euro.cauce.org/> * Sign the EU petition

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