
Score a message date against the year the server is actually running in.
January 1, 2010. SpamAssassin wakes up and starts scoring mail from the future. A rule written years earlier matched any Date header in 20[1-9][0-9] and added 3.2 points for it, which was fine right up until the calendar caught up with the pattern. Legitimate mail dropped into spam folders worldwide that morning while admins hunted for the rule. The year had been baked in. Take it out.
date_score(2009, 2009)Expected result
0For your own tracking. Tests grade your code.
date_score(2011, 2009)Expected result
3date_score(1998, 2009)Expected result
2Expected files
score.cAllowed functions
None. Write every helper yourself.
