https://issues.apache.org/SpamAssassin/show_bug.cgi?id=5965
--- Comment #3 from Mark Martinec <[EMAIL PROTECTED]> 2008-08-27 18:09:36 PST
---
Now in trunk
(directly or indirectly related to this bug):
r689129 | mmartinec | 2008-08-26 18:28:52 +0200 (Tue, 26 Aug 2008)
bug 5965: do not treat user data as perl booleans (a string "0" is a false);
differentiate between missing and empty header fields; tweak header parsing
r689130 | mmartinec | 2008-08-26 18:53:14 +0200 (Tue, 26 Aug 2008)
fixed previous patch (hb separator test failing)
r689682 | mmartinec | 2008-08-28 02:44:56 +0200 (Thu, 28 Aug 2008)
- continue work on avoiding user data to be tested as perl booleans,
instead test for defined or for an empty string as appropriate;
- pms->get can now distinguish between empty and nonexistent header
fields, undef is returned for nonexistent header field unless a
default value argument is explicitly set to some defined value
like an empty string;
- modified calls to pms->get to deal with undef as appropriate;
- Conf.pm, Conf/Parser.pm and Plugin/Check.pm now work together and turn
a rule 'exists:name_of_header' into a defined(name_of_header) instead
of a name_of_header =~ /./ to match the documentation ("Define a
header existence test") and make it possible to distinguish empty
from nonexistent header fields; in principle the new code could allow
operators like 'eq' and 'ne' or function calls in header tests
in addition to regexp matching operators '=~' and '!~' (but this
is currently not allowed by the parser);
(plus some collateral small fixes)
The whole change is too extensive for a 3.2 branch, and as the original
bug report had a label of minor severity, I suggest this ticket be
closed now, changes will only be in 3.3.
--
Configure bugmail:
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.