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

           Summary: Untrustworthy Received headers cannot match start-of-
                    line anchor
           Product: Spamassassin
           Version: 3.1.0
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Rules
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Rules matching Received headers other than the first one which are not readily
parseable or maybe not worth parsing (i.e. untrustworthy) never match a pattern
starting with '^'

For example, this header from actual spam:

Received: by smtp.sisencenenged.com id htv5q204a2gi; Thu, 8 Mar 2007 00:38:45
-0800 (envelope-from <[EMAIL PROTECTED]>)

Will not match this test rule:

header TEST_RCVD_FORMAT1 Received =~ /^by smtp/

but will match:

header TEST_RCVD_FORMAT1 Received =~ /by smtp/

If I strip out the valid Received headers from the message so that the given one
is the only Received heaer, the anchored pattern matches.



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

Reply via email to