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





--- Comment #1 from Mark Martinec <[EMAIL PROTECTED]>  2008-08-26 10:29:01 PST 
---
Also the following message hits a MISSING_SUBJECT rule:

  From:[EMAIL PROTECTED] <[EMAIL PROTECTED]>
  To: [EMAIL PROTECTED]
  Subject: 0

  blahblah blah

The underlying reason is a nonpedantic practice in some parts of code
where user-supplied strings (e.g. from messages or rules) are evaluated
in places as Perl booleans, instead of being tested for being defined
or for being an empty string. In both supplied cases the "Subject: 0"
or "TESTHEADER: 0" is indistinguishable from an absent header field.

Please try the attached patch - it should apply to 3.2.* as well as
to 3.3 (with some fudge). I tried to fix the more prominent of these
cases, but I'm sure there are still other more obscure ones, waiting
for a next bug report.


-- 
Configure bugmail: 
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to