From: martin f. krafft Date: Tue, 25 Sep 2007 13:44:15 +0000 (+0200) Subject: do discarding in a central place X-Git-Url: https://git.madduck.net/etc/mailfilter.git/commitdiff_plain/0b5cd2ac0d5ce283ed5c9eb3107975978ded9c58?hp=e1d90df1eaecda8accd3c8117756c33a926b359c do discarding in a central place --- 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