From: martin f. krafft Date: Wed, 27 Feb 2008 10:52:27 +0000 (+0100) Subject: add spam pattern matching X-Git-Url: https://git.madduck.net/etc/mailfilter.git/commitdiff_plain/618434f6b845c681d091cdbe77258d1259a8974e?ds=sidebyside add spam pattern matching --- diff --git a/config/spampatterns b/config/spampatterns new file mode 100644 index 0000000..5b96fd3 --- /dev/null +++ b/config/spampatterns @@ -0,0 +1 @@ +^Subject:.+% OFF$ diff --git a/procmail/spamfilter b/procmail/spamfilter index b0d2793..491f157 100755 --- a/procmail/spamfilter +++ b/procmail/spamfilter @@ -99,6 +99,7 @@ PMDIR=${PMDIR:-$HOME/.etc/mailfilter/procmail} { INCLUDERC=$PMDIR/spamtraps INCLUDERC=$PMDIR/spammers + INCLUDERC=$PMDIR/spampat INCLUDERC=$PMDIR/pre-spam-cleanup # crm114 diff --git a/procmail/spampat b/procmail/spampat new file mode 100644 index 0000000..c8e0e15 --- /dev/null +++ b/procmail/spampat @@ -0,0 +1,8 @@ +:0 +* ? $EGREP -qif $CONF/spampatterns +{ + SPAMTRAPPED="matches a spam pattern" + LOG="spampat: $SPAMTRAPPED$NL" +} + +# vim:ft=procmail