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:

allow early scripts to properly log
authormartin f. krafft <madduck@madduck.net>
Mon, 3 Mar 2008 12:38:09 +0000 (13:38 +0100)
committermartin f. krafft <madduck@madduck.net>
Mon, 3 Mar 2008 12:38:09 +0000 (13:38 +0100)
procmail/defines
procmail/get-msgid
procmail/logging

index 55508cb1032602ad93e4c7cdc567ce865ba719bc..1c55b63f4cda5c10c4001b798d463dc3bacbd1c1 100644 (file)
@@ -150,7 +150,7 @@ INCLUDERC=$PMDIR/get-msgid
 { ORIGINAL_TO="$MATCH" }
 :0 E
 * ^Received:
-{ LOG="NO ORIGINAL_TO: $MSGID" }
+{ LOGLATER="NO ORIGINAL_TO: $MSGID" }
 
 :0
 *$ ^X-Trained-As:$RE_EXTRACT_HEADER_VALUE
index 50fbef4f01459bfcf76d826deb330ba099840ffb..61eca10419a0afa18aa5283daf8e4917fa354e37 100644 (file)
@@ -8,14 +8,14 @@
   :0
   * ^Resent-Message-Id:[       ]*\/[^  ]+
   {
-    LOG="get-msgid:   lacking message-id, using resent-message-id...$NL"
+    LOGLATER="get-msgid:   lacking message-id, using resent-message-id...$NL"
     :0 fw
     |$FORMAIL -R Resent-Message-ID Message-ID
   }
 
   :0 E
   {
-    LOG="get-msgid:   lacking message-id, generating one...$NL"
+    LOGLATER="get-msgid:   lacking message-id, generating one...$NL"
     :0 fw
     |$FORMAIL -a Message-ID:
   }
@@ -28,7 +28,7 @@
 :0
 * ! MSGID ?? ^<[^>]+>$
 {
-  LOG="get-msgid:   message-id '$MSGID' not enclosed in <>, fixing it...$NL"
+  LOGLATER="get-msgid:   message-id '$MSGID' not enclosed in <>, fixing it...$NL"
   MSGID="<$MSGID>"
 }
 
@@ -38,6 +38,6 @@
 *$ !^Received: by $RE_MAILRELAYS \(postfix, from userid
 * MSGID ?? ^<\/[^>]+
 {
-  LOG="get-msgid:   missing message ID added by one of our mail relays$NL"
+  LOGLATER="get-msgid:   missing message ID added by one of our mail relays$NL"
   MSGID="<${MATCH}.MSGID-ADDED>"
 }
index a1e199a89e9ead5e6202368ace47ba7452af58ec..d6fc08387847daf8ed4a1b913d328de6d400091c 100644 (file)
@@ -12,8 +12,13 @@ MSGIDDIR=$PMVAR/msgid
 MASTERLOGFILE="$LOGFILE"
 LOGFILE="$THISLOGFILE"
 
-LOG="==============================================================================
-msgid:       $MSGID
+LOG="==============================================================================$NL"
+
+:0
+* LOGLATER ?? .
+{ LOG="$LOGLATER" }
+
+LOG="msgid:       $MSGID
 logfile:     $THISLOGFILE_REL
 date:        $DATE (@$OURDATE)
 from:        $FROM