From 7f96c594ec0bc35681ba72e4f8eaae970aecfab8 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sun, 23 Sep 2007 17:33:11 +0200 Subject: [PATCH] do not archive resubmitted messages with gmail --- procmail/to-gmail | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/procmail/to-gmail b/procmail/to-gmail index 4909c0c..ab05e40 100644 --- a/procmail/to-gmail +++ b/procmail/to-gmail @@ -2,10 +2,17 @@ * ORIG_DOMAIN ?? ^(mass|r2e)\.madduck\.net$ * !^X-Mailer: swaks { - LOG="gmail: archiving message $MSGID with gmail$NL" - SENDMAILFLAGS="$SENDMAILFLAGS -f $ID" - TRAP="" - :0 - ! martin.krafft@gmail.com + *$ ! $MSG_DEJAVU + { + LOG="gmail: archiving message $MSGID with gmail$NL" + SENDMAILFLAGS="$SENDMAILFLAGS -f $ID" + TRAP="" + + :0 + ! martin.krafft@gmail.com + } + + :0 E + { LOG="gmail: not archiving message resubmitted message with gmail$NL" } } -- 2.39.5