Who gets the positive hits for this one?  I certainly don't have any.

header BUGZILLA_BUG             Subject =~ /\[Bug \d+\]/
describe BUGZILLA_BUG           Looks like a Bugzilla bug
score BUGZILLA_BUG              0.921

Regardless of why that's happening, it may to be simple of a rule
anyway, so here's my attempt to revise it.  I'll probably check it
into HEAD and we can backport to the 2.30 branch if it works out okay.

(It still needs to be tested.)

sub message_from_bugzilla {
  my ($self) = @_;

  my $all = $self->get('ALL');
  my $score = 0;
  $score++ if ($all =~ /(^|\n)From:?\s+bugzilla/s);
  $score++ if ($all =~ /\nX-Bugzilla-\S+:/s);
  $score++ if ($score && ($all =~ /\nSubject:.*\[Bug \d+\]/s));
  return ($score > 1);
}

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to