[Mimedefang] Deleting Multiple Headers

David F. Skoll dfs at roaringpenguin.com
Tue Oct 15 08:47:01 EDT 2002


On Mon, 14 Oct 2002 jmiller at purifieddata.net wrote:

> I'd suggest adding a new subroutine to your filter. Something like this:

> sub add_fresh_header ($$) {
> 	my ($header,$value) = @_;
> 	open(HDRS, "<HEADERS");
> 	my $count = 0;
> 	while(<HDRS>) {
> 		$count++ if /^X-Spam-Level:/;

I believe you want:
		$count++ if /^${header}:/;

But add_fresh_header is a good idea; should it be part of mimedefang.pl?

> Not possitive on the Recieved headers question though.

You should be able to delete Received: headers, but the final one gets
added *after* Milter runs.  Deleting Received: headers is of dubious
value anyway, IMO.

--
David.




More information about the MIMEDefang mailing list