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

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:

prepare tickler for resubmitting, instead of inbox writing
[etc/mailfilter.git] / procmail / get-msgid
index 3c3bfe3b761d43334728ab297c26c1d093103c03..50fbef4f01459bfcf76d826deb330ba099840ffb 100644 (file)
@@ -10,7 +10,7 @@
   {
     LOG="get-msgid:   lacking message-id, using resent-message-id...$NL"
     :0 fw
   {
     LOG="get-msgid:   lacking message-id, using resent-message-id...$NL"
     :0 fw
-    |$FORMAIL -R Resent-Message-Id Message-Id
+    |$FORMAIL -R Resent-Message-ID Message-ID
   }
 
   :0 E
   }
 
   :0 E
@@ -36,7 +36,8 @@
 *$ MSGID ?? .+@$RE_MAILRELAYS>
 *$ !^Return-Path: .+@$RE_MAILRELAYS\>
 *$ !^Received: by $RE_MAILRELAYS \(postfix, from userid
 *$ MSGID ?? .+@$RE_MAILRELAYS>
 *$ !^Return-Path: .+@$RE_MAILRELAYS\>
 *$ !^Received: by $RE_MAILRELAYS \(postfix, from userid
+* MSGID ?? ^<\/[^>]+
 {
   LOG="get-msgid:   missing message ID added by one of our mail relays$NL"
 {
   LOG="get-msgid:   missing message ID added by one of our mail relays$NL"
-  MSGID="${MSGID}.MSGID-ADDED"
+  MSGID="<${MATCH}.MSGID-ADDED>"
 }
 }