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 2009/09/03 17:08:06 UTC

[Bug 6192] masscheck "got hit" reports target filename instead of matched text

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





--- Comment #1 from Mark Martinec <Ma...@ijs.si>  2009-09-03 08:08:04 PST ---
>> lib.mbox is the file, and it's formatted correctly. The same thing happens
>> when I tell it to check a single file containing a single message.
>>
>> I think the trailing number is the offset of the beginning of the message,
>> because when I use a single file the number is zero.

These are all either meta or 'exists:' rules behaving this way.

It's because neither meta nor 'exists:' uses regexp matching
in its code, so whatever was previously left in the $& is
reported in a debug call.

For example, here is a compiled code for an 'exists:' rule:

if (defined($hval)) {
  $self->got_hit(q{__TOCC_EXISTS}, "", ruletype => "header");
  dbg("rules: ran header rule __TOCC_EXISTS ======> 
    got hit: \"" . ($&|| "negative match") . "\"")
}

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