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:

enable vacation autoreplies
authormartin f. krafft <madduck@madduck.net>
Thu, 6 Jan 2011 07:59:33 +0000 (08:59 +0100)
committermartin f. krafft <madduck@madduck.net>
Thu, 7 Jul 2011 05:39:45 +0000 (07:39 +0200)
config/vacation-rcpts [new file with mode: 0644]
procmail/defines
procmail/procmailrc
procmail/vacation [new file with mode: 0644]

diff --git a/config/vacation-rcpts b/config/vacation-rcpts
new file mode 100644 (file)
index 0000000..baa8139
--- /dev/null
@@ -0,0 +1,3 @@
+^.*@martin-krafft\.net$
+^madduck@madduck\.net$
+^madduck@debian\.org$
index d1cbb9f8324cb1ebe49b361e566dd89de6558b7a..4470c76f4dc7c95f434facc46a6a4dedba06248c 100644 (file)
@@ -37,6 +37,8 @@ SPAMC="$NICE /usr/bin/spamc --log-to-stderr --no-safe-fallback"
 #SPAMC="$SPAMASSASSIN"
 TRAINER="$NICE $MAILFILT/bin/train"
 
+VACATION="$NICE /usr/bin/vacation"
+
 SQLITE="$NICE /usr/bin/sqlite3"
 
 BASE=$HOME/.maildir
index 69367718630cad39960d1a1132fe0015149a9ab1..69b3c702f427cc23dc0769c766620bd89d88e1a9 100755 (executable)
@@ -42,6 +42,7 @@ INCLUDERC=$PMDIR/spamfilter
 INCLUDERC=$PMDIR/handlespam
 
 #INCLUDERC=$PMDIR/autoreplies
+INCLUDERC=$PMDIR/vacation
 
 INCLUDERC=$PMDIR/tickle
 
diff --git a/procmail/vacation b/procmail/vacation
new file mode 100644 (file)
index 0000000..7f8f4d1
--- /dev/null
@@ -0,0 +1,11 @@
+:0 c
+* ! DEST ?? .
+*$ !$MSG_DEJAVU
+* ? echo "$ORIGINAL_TO" | $EGREP -qif $CONF/vacation-rcpts
+{
+  LOG="vacation:    maybe sending vacation autoreply to $SENDER$NL"
+  :0: $PMVAR/vacation.db.lock
+  |$VACATION -j -r 3 -f $PMVAR/vacation.db -m $REPLIES/vacation $LOGNAME
+}
+
+# vim:ft=procmail