https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6867
Bug ID: 6867
Summary: rule-qa only looks at localized time in masscheck
results files, gets "no time found, ignored" if non-C
locale in use
Product: Spamassassin
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Masses
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Created attachment 5113
--> https://issues.apache.org/SpamAssassin/attachment.cgi?id=5113&action=edit
fall back to Date: header if timestamp in "mass-check results" line cannot be
parsed
The header from a masscheck result file run in a non-C-ish locale:
# mass-check results from masscheck@xxxxxx, on czw, 22 lis 2012, 12:07:20 UTC
# M:SA version 3.4.0-r1406273
# SVN revision: 1412451
# Date: 20121122T120720Z
# Perl version: 5.012004 on i686-linux
# Switches: '--cache "--cachedir=~/cache-mass" "--hamlog=ham-xxxxx-ham.log"
"--spamlog=spam-xxxx-spam.log" -j 1 --progress "ham:dir:/xxx/
xxx/xxxx/2*"'
reports-from-logs only looks for the dtm in the "mass-check results from" line,
using a hardcoded C-like date format, but mass-check generates that date using
whatever locale is in use. If the locale is not C-ish and thus not parseable
using the hardcoded format, rule-qa will emit "no time found, ignored" and will
ignore the results file completely.
rule-qa should use only, or at least fall back to, the fixed-format Date: line.
Proposed fallback patch attached.
--
You are receiving this mail because:
You are the assignee for the bug.