From: martin f. krafft Date: Fri, 17 Aug 2007 14:25:03 +0000 (+0200) Subject: add dejavu header at the end X-Git-Url: https://git.madduck.net/etc/mailfilter.git/commitdiff_plain/be279c4fb7e0f46bdbd14b1dafe9e0eb460ffbe6?ds=sidebyside add dejavu header at the end --- diff --git a/procmail/addheaders b/procmail/addheaders index 6915f9c..74fb503 100644 --- a/procmail/addheaders +++ b/procmail/addheaders @@ -1,3 +1,7 @@ +:0 fw +*$ !$MSG_DEJAVU +|$FORMAIL -A"$DEJAVU_HEADER: $ID" + :0 fw * JUSTME ?? . |$FORMAIL -A"X-Justme: $JUSTME" diff --git a/procmail/defines b/procmail/defines index 7df70cd..5419eae 100644 --- a/procmail/defines +++ b/procmail/defines @@ -67,6 +67,8 @@ RE_FIRSTNAME="martin($RE_SPACE_NEWLINE+f(\.?|elix))?" RE_LASTNAME="kraff?t" RE_EXTRACT_HEADER_VALUE="[ ]*\/[^ ].*" +DEJAVU_HEADER=X-Deja-Vu + NULL=/dev/null DISCARD=$BASE/.discard/ #DISCARD="'|$DELIVER -m BASE.discard'" diff --git a/procmail/dejavu b/procmail/dejavu index c25f156..298abae 100644 --- a/procmail/dejavu +++ b/procmail/dejavu @@ -1,9 +1,6 @@ :0 -*$ ^X-Been-There: $ID +*$ ^$DEJAVU_HEADER: $ID { LOG="dejavu: re-processing message $MSGID$NL" MSG_DEJAVU } - -:0 Efw -|$FORMAIL -A"X-Been-There: $ID"