Issue 26: spamassassin plugin rename subject if spam score = threshold
http://code.google.com/p/smtpd/issues/detail?id=26
New issue report by cotosso:
What steps will reproduce the problem?
1. Configure qpsmtpd to use spamassassin (my configuration is:
spamassassin reject_threshold 15.0 munge_subject_threshold 5.0
2. Try (if possibile) to check an email with score equal to munge threshold
(e.g. 5.0)
3.
What is the expected output? What do you see instead?
The email, according to spamassassin plugin documentation, should'nt be
renamed with ***SPAM*** because munge_subject_threshold "Set the threshold
over which we will prefix the subject with '***SPAM***'."
Over is "more than, not equal to the threshold"
Instead I see the email's subject modified with ***SPAM***
What version of the product are you using? On what operating system?
qpsmtpd 0.40 on kernel 2.4.36
Please provide any additional information below.
The problem seems to be the plugin itself, probably solved whit this patch:
[EMAIL PROTECTED] plugins]# diff -u spamassassin.ori spamassassin
--- spamassassin.ori 2007-02-13 19:29:47.000000000 +0100
+++ spamassassin 2008-07-25 18:10:24.000000000 +0200
@@ -245,7 +245,7 @@
my ($self, $transaction) = @_;
my $score = $self->get_spam_score($transaction) or return DECLINED;
- return DECLINED unless $score >= $self->{_args}->{munge_subject_threshold};
+ return DECLINED unless $score > $self->{_args}->{munge_subject_threshold};
my $subject = $transaction->header->get('Subject') || '';
$transaction->header->replace('Subject', "***SPAM*** $subject");
#########
I haven't tried but, looking at the code, the reject function of the same
plugin seems to have the same problem.
Issue attributes:
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings