On Mon, 2014-06-09 at 05:49 +0200, Karsten Bräckelmann wrote: > On Sun, 2014-06-08 at 20:56 -0500, Chris wrote: > > In my etc/mail/spamassassin/local.cf I have the above line. I just > > For completeness: That add_header option does work, although there are > actually exactly 3 arguments. > > add_header { spam | ham | all } header_name string > > Just like stock configuration shows, the string argument should be > enclosed by double quotes. > > add_header all Date "of Scan _DATE_" > > > upgraded to 3.4.0 today and I notice that the 'date of scan' is showing > > something like this: > > Sic, it's the (X-Spam-) Date header, not "Date of Scan" header. ;) > > > > X-spam-date: of Scan Sat, 21 Feb 1976 13:57:28 -0500 > > > > Does this add header line not work anymore? Previous to the upgrade it > > was working correctly: > > > > X-spam-date: of Scan Sun, 08 Jun 2014 12:35:11 -0500 > > Interesting. Unrelated to the number of arguments, though... > > Found the culprit after some digging. Bug 6915 [1], revision 1453407. As > a band-aid, the following trivial one-line patch fixes it. Can easily be > applied manually. > > Since it is kind of way past "getting late" here, and there may be other > Template Tags affected, I'll defer proper bug handling and committing > code changes for tomorrow. > > > --- lib/Mail/SpamAssassin/Util.pm (revision 1601300) > +++ lib/Mail/SpamAssassin/Util.pm (working copy) > @@ -582,6 +582,7 @@ > } > > sub time_to_rfc822_date { > + my $pms = shift; > my($time) = @_; > > my @days = qw/Sun Mon Tue Wed Thu Fri Sat/; > > > [1] https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6915 >
Thanks Karsten, that did the trick. Much appreciated. Chris -- Chris KeyID 0xE372A7DA98E6705C 31.11°N 97.89°W (Elev. 1092 ft) 08:31:32 up 6 days, 17:01, 2 users, load average: 0.28, 0.30, 0.26 Mandriva Linux 2010.2, kernel 2.6.33.7-desktop586-2mnb