X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/5af333ca3b83425e5cb3aa704b37654d576856c1..5b799190bba761bb9b01a687a2495bc13b29080d:/procmail/to-gmail diff --git a/procmail/to-gmail b/procmail/to-gmail index 4909c0c..59df5cc 100644 --- a/procmail/to-gmail +++ b/procmail/to-gmail @@ -1,11 +1,23 @@ -:0 c +:0 * ORIG_DOMAIN ?? ^(mass|r2e)\.madduck\.net$ -* !^X-Mailer: swaks { - LOG="gmail: archiving message $MSGID with gmail$NL" - SENDMAILFLAGS="$SENDMAILFLAGS -f $ID" - TRAP="" + :0 c + *$ ! $MSG_DEJAVU + * ! MSG_TEST ?? . + { + LOG="gmail: archiving message $MSGID with gmail$NL" + SENDMAILFLAGS="$SENDMAILFLAGS -f $ID" + TRAP - :0 - ! martin.krafft@gmail.com + :0 + ! martin.krafft@gmail.com + } + + :0 E + * MSG_TEST ?? . + { LOG="gmail: not archiving message test message with gmail$NL" } + + :0 E + *$ $MSG_DEJAVU + { LOG="gmail: not archiving message resubmitted message with gmail$NL" } }