From 0b5cd2ac0d5ce283ed5c9eb3107975978ded9c58 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 25 Sep 2007 15:44:15 +0200 Subject: [PATCH] do discarding in a central place --- procmail/discard | 6 ++++++ procmail/ignore | 3 +-- procmail/justme | 14 +++++++++----- procmail/rules/ul | 3 +-- 4 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 procmail/discard diff --git a/procmail/discard b/procmail/discard new file mode 100644 index 0000000..abe46be --- /dev/null +++ b/procmail/discard @@ -0,0 +1,6 @@ +INCLUDERC=$PMDIR/addheaders + +:0 +$DISCARD + +# vim:ft=procmail diff --git a/procmail/ignore b/procmail/ignore index b207b04..e49b667 100644 --- a/procmail/ignore +++ b/procmail/ignore @@ -2,8 +2,7 @@ * ? $EGREP -qif $CONF/ignore { LOG="ignore: discarding ignored message $MSGID from $FROM to $ORIGINAL_TO$NL" - :0 - $DISCARD + SWITCHRC=$PMDIR/discard } :0 H diff --git a/procmail/justme b/procmail/justme index 3d5f6fc..ac3dbd6 100644 --- a/procmail/justme +++ b/procmail/justme @@ -66,6 +66,14 @@ LOG="justme: passing; $JUSTME$NL" } + :0 E + * FROM ?? -bounces@ + * SUBJECT ?? ^You have been unsubscribed + { + JUSTME="mailman confirmation" + LOG="justme: passing; $JUSTME$NL" + } + :0 E * FROM ?? -bounces@ * SUBJECT ?? .+ mailing list reminder$ @@ -96,11 +104,7 @@ :0 E { LOG="justme: discarding$NL" - - INCLUDERC=$PMDIR/addheaders - - :0 - $DISCARD + SWITCHRC=$PMDIR/discard } } diff --git a/procmail/rules/ul b/procmail/rules/ul index 1d5aaf8..11281b6 100644 --- a/procmail/rules/ul +++ b/procmail/rules/ul @@ -15,8 +15,7 @@ *$ 1^0 ^TO_ResearchInformationRISS@$RE_UL_DOMAIN { LOG="ul: discard unwanted list mail$NL" - :0 - $DISCARD + SWITCHRC=$PMDIR/discard } RE_UL_DOMAIN -- 2.39.2