]> git.madduck.net Git - etc/mailfilter.git/commitdiff

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:

gracefully handle local message without orig-to
authormartin f. krafft <madduck@madduck.net>
Fri, 29 Feb 2008 13:36:51 +0000 (14:36 +0100)
committermartin f. krafft <madduck@madduck.net>
Fri, 29 Feb 2008 13:36:51 +0000 (14:36 +0100)
procmail/defines
procmail/normalise

index 2aae636af0d1852acd93838a6d52c119a3c04905..754ba493adb5817be95a5e595f5f0e7ebba26031 100644 (file)
@@ -148,6 +148,7 @@ INCLUDERC=$PMDIR/get-msgid
 *$ ^X-Original-To:$RE_EXTRACT_HEADER_VALUE
 { ORIGINAL_TO="$MATCH" }
 :0 E
+* ^Received:
 { LOG="NO ORIGINAL_TO: $MSGID" }
 
 :0
index b20569414c845b90f0bc191aa1695816490fe1d7..bd8d0a799026b164683fada0c323d94fd9e601a4 100644 (file)
@@ -1,5 +1,6 @@
-# add hostname if missing
+# add hostname if missing, but only if ORIGINAL_TO is not empty
 :0
+* ORIGINAL_TO ?? .
 * ! ORIGINAL_TO ?? @
 { ORIGINAL_TO="$ORIGINAL_TO@$HOSTNAME" }