[Mimedefang] How to strip existing 'X-' lines from a message

Ole Craig olc at cs.umass.edu
Thu Jul 10 09:51:01 EDT 2003

On 07/10/03 at 09:18, 'twas brillig and David F. Skoll scrobe:
> On Thu, 10 Jul 2003, G. Roderick Singleton wrote:
> > DRAT! Thanks. I'll do 'em one at a time then. ;-(
> Right.  If you know the headers you care about, just do it blindly
> for all of those.
> (The limitation is in Sendmail, by the way; there's no way in the Milter
> API to specify a wildcard for headers to delete.)

	Incidentally, you may want to reconsider mass deletion of X-
headers; they're used as an extensible hook by many things, and it's
difficult to know in advance what may break. As a very basic example,
there's a sample recipe detailed in the procmailex manpages that uses
"X-Loop" to avoid vacation message cascading.

	IMnsHO, better to remove only those headers you plan to use.

Ole Craig * UNIX, linux, SMTP-ninja; news, web; SGI martyr * CS Computing
Facility, UMass * <www.cs.umass.edu/~olc/pgppubkey.txt> for public key
[...] Oh, shed thy mercy and thy grace / On those who venture into space.
			(R. A. Heinlein)

More information about the MIMEDefang mailing list