Y2k10 breaks Spamassassin rule for date checking

Red Squirrel

No Lifer
May 24, 2003
71,266
14,062
126
www.anyf.ca
Turns out there is a date checking rule that has the date hard coded in it, so when we hit 2010 it started to cause false positives. For those of you that use SA on your mail server, this may be interesting to note:

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6269

The fix is fairly easy. This should be how the rule looks like:

line 543 of /etc/share/spamassassin/72_active.cf
Code:
##{ FH_DATE_PAST_20XX
header   FH_DATE_PAST_20XX      Date =~ /20[2-9][0-9]/ [if-unset: 2006]^M
describe FH_DATE_PAST_20XX      The date is grossly in the future.^M
##} FH_DATE_PAST_20XX

Not the best fix mind you, since it will break again in 10 years, but it does the job for now at least.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
If you're running Debian stable this was already fixed by the package maintainer in version 3.2.5-2+lenny2. =)