]> 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:

fix debian.ch community address
[etc/mailfilter.git] / procmail / duplicates
index fc47f03a280cd992004b90b97957437e887e0eb0..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 ?? .
-*$ !$REPROC_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