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:

log injections from trusted relays
authormartin f. krafft <madduck@madduck.net>
Fri, 22 May 2009 20:40:31 +0000 (22:40 +0200)
committermartin f. krafft <madduck@madduck.net>
Fri, 22 May 2009 20:40:31 +0000 (22:40 +0200)
procmail/log-injected [new file with mode: 0644]
procmail/procmailrc

diff --git a/procmail/log-injected b/procmail/log-injected
new file mode 100644 (file)
index 0000000..eb1c699
--- /dev/null
@@ -0,0 +1,13 @@
+:0
+*$ ^Received: from \/.+by $RE_MAILRELAYS \(postfix-inject\)
+{
+  :0
+  *$ MATCH ?? ^\/${RE_NOT_SPACE}+
+  { TRUSTED_RELAY="$MATCH" }
+
+  LOG="log-inject:  message was injected by $TRUSTED_RELAY$NL"
+
+  TRUSTED_RELAY
+}
+
+# vim:ft=procmail
index 117f552913727b4e3f8c0d87d1bfa6bbcdf3a48e..1271fda0172c47cc334c01a7d49700e7fd2041c6 100755 (executable)
@@ -15,6 +15,8 @@ INCLUDERC=$PMDIR/defines
 INCLUDERC=$PMDIR/logging
 #INCLUDERC=$PMDIR/msgid-index
 
+INCLUDERC=$PMDIR/log-injected
+
 INCLUDERC=$PMDIR/ignore
 
 INCLUDERC=$PMDIR/smsmail