From be279c4fb7e0f46bdbd14b1dafe9e0eb460ffbe6 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 17 Aug 2007 16:25:03 +0200 Subject: [PATCH] add dejavu header at the end --- procmail/addheaders | 4 ++++ procmail/defines | 2 ++ procmail/dejavu | 5 +---- 3 files changed, 7 insertions(+), 4 deletions(-) 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" -- 2.39.5