]> git.madduck.net Git - etc/mailfilter.git/blobdiff - procmail/duplicates

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

ignore gmx mailings
[etc/mailfilter.git] / procmail / duplicates
index 8b3c00b6bd091aa088f14fc7068b5dd3f40f9f1b..aa9f1b7324e549d2a4848ae1dc3bcdc8a54cfb36 100644 (file)
@@ -3,13 +3,12 @@ MID_CACHE_FILE = $PMVAR/msgid.cache
 LOCKFILE = $MID_CACHE_FILE$LOCKEXT
 :0
 *$ !SKIP_DUP ?? .
 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"
 * ^Message-ID:
 * ? $FORMAIL -D 16384 $MID_CACHE_FILE
 {
   LOG="duplicate:   drop duplicate message $MSGID$NL"
-
-  :0
-  $NULL
+  LOCKFILE   # unlock
+  SWITCHRC=$PMDIR/discard
 }
 LOCKFILE   # unlock
 }
 LOCKFILE   # unlock