From 618434f6b845c681d091cdbe77258d1259a8974e Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 27 Feb 2008 11:52:27 +0100 Subject: [PATCH] add spam pattern matching --- config/spampatterns | 1 + procmail/spamfilter | 1 + procmail/spampat | 8 ++++++++ 3 files changed, 10 insertions(+) create mode 100644 config/spampatterns create mode 100644 procmail/spampat 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 -- 2.39.5