/[smeserver]/rpms/qpsmtpd/sme7/qpsmtpd-de3fbb565f711bc27e7bfa061e83c3020710dc16.patch
ViewVC logotype

Contents of /rpms/qpsmtpd/sme7/qpsmtpd-de3fbb565f711bc27e7bfa061e83c3020710dc16.patch

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


Revision 1.1 - (show annotations) (download)
Thu Nov 5 18:18:12 2009 UTC (15 years, 1 month ago) by snetram
Branch: MAIN
CVS Tags: qpsmtpd-0_83-0_7_el4_sme, qpsmtpd-0_83-0_9_el4_sme, qpsmtpd-0_83-0_8_el4_sme, qpsmtpd-0_83-0_10_el4_sme, qpsmtpd-0_83-0_6_el4_sme, HEAD
* Thu Nov 5 2009 <smeserver-contribs@snetram.nl> 0.83-0.6.sme
- Apply qpsmtpd git changesets to implement custom SPAM
  subject prefix [SME: 5567]

1 commit de3fbb565f711bc27e7bfa061e83c3020710dc16
2 Author: Robert <rspier@pobox.com>
3 Date: Wed Nov 4 21:43:38 2009 -0800
4
5 Rename spamsubjectprefix to subject_prefix. Add docs.
6
7 diff --git a/plugins/spamassassin b/plugins/spamassassin
8 index be3a67b..816da4d 100644
9 --- a/plugins/spamassassin
10 +++ b/plugins/spamassassin
11 @@ -40,14 +40,20 @@ The default is to never reject mail based on the SpamAssassin score.
12
13 =item munge_subject_threshold [threshold]
14
15 -Set the threshold where the plugin will prefix the subject with
16 -'***SPAM***' or the value defined in the spamsubjectprefix
17 -configuration file. A modified subject is easier to filter on than the
18 -other headers for many people with not so clever mail clients. You
19 -might want to make another plugin that does this on a per user basis.
20 +Set the threshold where the plugin will prefix the subject with the
21 +value of C<subject_prefix>. A modified subject is easier to filter on
22 +than the other headers for many people with not so clever mail
23 +clients. You might want to make another plugin that does this on a
24 +per user basis.
25
26 The default is to never munge the subject based on the SpamAssassin score.
27
28 +=item subject_prefix [prefix]
29 +
30 +What to prefix the subject with if the message is detected as spam
31 +(i.e. if score is greater than C<munge_subject_threshold>. Defaults to
32 +C<*** SPAM ***>
33 +
34 =item spamd_socket [/path/to/socket|spamd.host:port]
35
36 Beginning with Mail::SpamAssassin 2.60, it is possible to use Unix
37 @@ -237,7 +243,7 @@ sub check_spam_munge_subject {
38
39 return DECLINED unless $score >= $self->{_args}->{munge_subject_threshold};
40
41 - my $subject_prefix = $self->qp->config('spamsubjectprefix') || '*** SPAM ***';
42 + my $subject_prefix = $self->qp->config('subject_prefix') || '*** SPAM ***';
43 my $subject = $transaction->header->get('Subject') || '';
44 $transaction->header->replace('Subject', "$subject_prefix $subject");
45

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