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 2004/01/17 00:54:38 UTC

[Bug 2531] Additional rewrite_subject method

http://bugzilla.spamassassin.org/show_bug.cgi?id=2531

sa-bug@noseynick.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sa-bug@noseynick.net



------- Additional Comments From sa-bug@noseynick.net  2004-01-16 14:59 -------
Noooo! Even better:

-    my $tag = $self->{conf}->{subject_tag};
-    $tag =~ s/_HITS_/sprintf("%05.2f", $self->{hits})/e;
-    $tag =~ s/_REQD_/sprintf("%05.2f", $self->{conf}->{required_hits})/e;
+    my $tag = $self->_replace_tags($self->{conf}->{subject_tag});

(note that this needs doing in 2 places in PerMsgStatus.pm)

_process_header() would be even better in theory, because of the re-wrapping and
stuff, except the original subject might have tags that you DON'T want processed.

Unfortunately, Mail::SpamAssassin::remove_spamassassin_markup admits:
  # Wow. Very Hackish.
... and needs quite a lot of work - probably removal patterns for all possible
_TAGS_   :-/

I would really, REALLY like to have "subject_tag ***SPAM_STARS(*)_" and sort by
subject to decide how spammy my spam is.



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