http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5690

           Summary: BAD_ENC_HEADER matches only spaces
           Product: Spamassassin
           Version: 3.2.3
          Platform: Other
               URL: http://www.rfc.se/rfc/rfc2047.txt
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Rules
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Hi,

While evaluating some strange rule scoring I noticed that BAD_ENC_HEADER
actually only search for spaces in the middle of strings.

The rule /=\?[^?\s]+\?[^?\s]\?\s*[^?]+\s(?!\?=)/ correktly matches the 
following:
=?iso-8859-1?Q?foobar gazonk?=

It does not however match:
=?iso-8859-1?Q?  foobar?=
=?iso-8859-1?Q?foobar ?=
=?iso-8859-1?Q?räksmörgås?=
=?iso-8859-1?R?foobar=20gazonk?=

Reference is rfc2047 part "2. Syntax of encoded-words".

I suggest that the rule is rewritten somewhat to detect more errors in coding.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to