On Wed, 23 Jan 2002, Jason wrote:

> The one thing I've noticed is that if the spammer sends the subject
> through formated other than Subject (like SUBJECT) an additional
> Subject is added by the SpamAssassin filtering (when tagged).

I just verified that's the case. Definite bug in SA.

Shouldn't get_header() and replace_header() and friends all be
case-insensitive WRT the LHS?

It's obvious why this happens with SUBJECT/Subject:

  # First, rewrite the subject line.
  if ($self->{conf}->{rewrite_subject}) {
    $_ = $srcmsg->get_header ("Subject");
    $_ ||= $srcmsg->get_header ("SUBJECT");     # not really legal, but...
    $_ ||= '';

    my $tag = $self->{conf}->{subject_tag};
    s/^(?:\Q${tag}\E |)/${tag} /g;
    $self->{msg}->replace_header ("Subject", $_);
  }

> When I brought this up I could have sworn the answer was a Mail Audit
> bug. I upgraded to Mail Audit 2.0 but the problem remained.  Is that
> where the bug is or SpamAssassin not working well with a subject line
> other than Subject?

SpamAssassin actually doesn't really use Mail::Audit any more except for
delivery ...

-- 
Charlie Watts
[EMAIL PROTECTED]
Frontier Internet, Inc.
http://www.frontier.net/


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

Reply via email to