You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2007/03/08 20:23:35 UTC
[Bug 5372] New: Untrustworthy Received headers cannot match start-of-line anchor
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: dev@spamassassin.apache.org
ReportedBy: william.cole@gedas.com
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 <we...@muspclogeda.com>)
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.
[Bug 5372] Untrustworthy Received headers cannot match start-of-line anchor
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5372
nj@leverton.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Untrustworthy Received |Untrustworthy Received
|headers cannot match start- |headers cannot match start-
|of-line anchor |of-line anchor
------- Additional Comments From nj@leverton.org 2007-03-09 03:46 -------
You need to tell Perl it's a multi-line field with the m modifier:
header TEST_RCVD_FORMAT1 Received =~ /^by smtp/m
Tested and works here.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5372] Untrustworthy Received headers cannot match start-of-line anchor
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5372
jm@jmason.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From jm@jmason.org 2007-03-09 04:14 -------
thanks Nick.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.