/[smeserver]/rpms/qpsmtpd/sme8/qpsmtpd-0.83-subjectrewrite.patch
ViewVC logotype

Contents of /rpms/qpsmtpd/sme8/qpsmtpd-0.83-subjectrewrite.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Thu Nov 5 18:28:55 2009 UTC (15 years ago) by snetram
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Remove accidentally committed and redundant patch that was not applied through the specfile

1 diff -up qpsmtpd-0.83/plugins/spamassassin.subjectrewrite qpsmtpd-0.83/plugins/spamassassin
2 --- qpsmtpd-0.83/plugins/spamassassin.subjectrewrite 2009-11-04 10:19:51.000000000 +0100
3 +++ qpsmtpd-0.83/plugins/spamassassin 2009-11-04 10:48:33.000000000 +0100
4 @@ -41,7 +41,8 @@ The default is to never reject mail base
5 =item munge_subject_threshold [threshold]
6
7 Set the threshold where the plugin will prefix the subject with
8 -'***SPAM***'. A modified subject is easier to filter on than the
9 +'***SPAM***' or the value defined in the spamsubjectprefix
10 +configuration file. A modified subject is easier to filter on than the
11 other headers for many people with not so clever mail clients. You
12 might want to make another plugin that does this on a per user basis.
13
14 @@ -236,8 +237,9 @@ sub check_spam_munge_subject {
15
16 return DECLINED unless $score >= $self->{_args}->{munge_subject_threshold};
17
18 + my $subject_prefix = $self->qp->config('spamsubjectprefix') || '*** SPAM ***';
19 my $subject = $transaction->header->get('Subject') || '';
20 - $transaction->header->replace('Subject', "***SPAM*** $subject");
21 + $transaction->header->replace('Subject', "$subject_prefix $subject");
22
23 return DECLINED;
24 }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed