From: martin f. krafft Date: Thu, 6 Jan 2011 07:59:33 +0000 (+0100) Subject: enable vacation autoreplies X-Git-Url: https://git.madduck.net/etc/mailfilter.git/commitdiff_plain/f9580451f506db43603243fef630f8ebfcc4a884?hp=53690a27958f40bc80a598842a629fe747d8078f enable vacation autoreplies --- diff --git a/config/vacation-rcpts b/config/vacation-rcpts new file mode 100644 index 0000000..baa8139 --- /dev/null +++ b/config/vacation-rcpts @@ -0,0 +1,3 @@ +^.*@martin-krafft\.net$ +^madduck@madduck\.net$ +^madduck@debian\.org$ diff --git a/procmail/defines b/procmail/defines index d1cbb9f..4470c76 100644 --- a/procmail/defines +++ b/procmail/defines @@ -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 diff --git a/procmail/procmailrc b/procmail/procmailrc index 6936771..69b3c70 100755 --- a/procmail/procmailrc +++ b/procmail/procmailrc @@ -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 index 0000000..7f8f4d1 --- /dev/null +++ b/procmail/vacation @@ -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