https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6152
Summary: Suggested improvement to INVALID_DATE_TZ_ABSURD rule
Product: Spamassassin
Version: SVN Trunk (Latest Devel Version)
Platform: Other
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: Rules
AssignedTo: [email protected]
ReportedBy: [email protected]
In 20_head_tests.cf - currently:
header INVALID_DATE_TZ_ABSURD Date =~ /[-+](?:1[4-9]\d\d|[2-9]\d\d\d)$/
This allows +1300, -0510 or -0503 which are all still absurd offsets.
Suggested replacement rule:
header INVALID_DATE_TZ_ABSURD Date =~
/[+-](?:[2-9]\d\d\d|1[3-9]\d\d|\d\d[1-2|4-9]\d|\d\d\d[1-9])/
This only allows -1200 to +1200 but allows for half-hour offsets like +1030.
Cheers,
Steve.
--
Configure bugmail:
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.