X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/5af333ca3b83425e5cb3aa704b37654d576856c1..f33448f87ae070a09476064a19cbfb89aa5a6c2e:/procmail/duplicates diff --git a/procmail/duplicates b/procmail/duplicates index 8b3c00b..aa9f1b7 100644 --- a/procmail/duplicates +++ b/procmail/duplicates @@ -3,13 +3,12 @@ MID_CACHE_FILE = $PMVAR/msgid.cache LOCKFILE = $MID_CACHE_FILE$LOCKEXT :0 *$ !SKIP_DUP ?? . -*$ !$OLD_MESSAGE +*$ !$MSG_DEJAVU * ^Message-ID: * ? $FORMAIL -D 16384 $MID_CACHE_FILE { LOG="duplicate: drop duplicate message $MSGID$NL" - - :0 - $NULL + LOCKFILE # unlock + SWITCHRC=$PMDIR/discard } LOCKFILE # unlock