[milters] Archive

Lists Index Date Thread Search

Article: 49
From: Anthony Howe
Date: 2009-08-15 03:56:52 -0400
Subject: Re: milter-date not adding headers

Todd Lyons uttered...:
> It still does not add those headers.  Is there anything obvious that I
> am doing wrong?

The headers were conditionally added only when policy=tag or
policy=quarantine, since policy=reject or policy=discard means a
rejected message never reaches an inbox.

In order to ALWAYS add them regardless, insert before line 779
----
#ifdef DROPPED_ADD_HEADERS
	if (optAddHeaders.value)
		milter.handlers.xxfi_flags |= SMFIF_ADDHDRS|SMFIF_CHGHDRS;
#endif
----

Also there is a slight bug. Move line 629
----
	is_spam = (data->work.replyLine[0] != '\0') || !data->hasDate ||
!data->hasFrom;
----
just above line 611 (#ifdef DROPPED_ADD_HEADERS).


-- 
Anthony C Howe            Skype: SirWumpus                  SnertSoft
+33 6 11 89 73 78       Twitter: SirWumpus      BarricadeMX & Milters
http://snert.com/      http://nanozen.info/     http://snertsoft.com/

Lists Index Date Thread Search