Timothy J Luoma writes on 8 October 1997 at 00:13:26
I'm a little tired of some of the gross excesses I'm seeing in headers, some
X-Headers, some non-X-headers that should be X-Headers.
Is there a way to have procmail/formail strip all but a certain set of
headers that I would define somewhere?
rather than zaping them, you might consider renaming them instead
:0fwh
* ^Bad-Header:
| formail -R Bad-Header: X-Bad-Header:
Or if you want to get fancier with a recursive INCLUDERC, put the
following in it's own file
# rename-header.rc
:0
* ^\/(Bad-Header|Bogus-Header|Somebody-Should-Read-RFC822):
{
:0fwh
| formail -R $MATCH X-$MATCH
INCLUDERC=$_
}
Dan
------------------- message is author's opinion only ------------------
J. Daniel Smith <DanS(_at_)bristol(_dot_)com>
http://www.bristol.com/~DanS
Bristol Technology B.V. +31 33 450 50 50, ...51 (FAX)
Amersfoort, The Netherlands {info,jobs}(_at_)bristol(_dot_)com