From: martin f. krafft Date: Wed, 22 Aug 2007 15:14:16 +0000 (+0200) Subject: add tickler receiver X-Git-Url: https://git.madduck.net/etc/mailfilter.git/commitdiff_plain/7047e6e0505152b6aa2242e1975340a99f5e57e3 add tickler receiver --- diff --git a/config/skip-spamchecks b/config/skip-spamchecks index 560c55e..f14f459 100644 --- a/config/skip-spamchecks +++ b/config/skip-spamchecks @@ -1,7 +1,7 @@ ^X-Mailer: swaks v20[[:digit:].]+ jetmore\.org/john/code/#swaks$ ^User-Agent: rss2email$ ^X-madduck-test: yes$ -^From:.*\ ^To:.*\ ^To:.*\ @@ -21,6 +21,7 @@ ^To:.*\ ^To:.*\ ^To:.*\ +^From:.*\ ^From:.*\ ^From:.*\ diff --git a/procmail/procmailrc b/procmail/procmailrc index 372cb9b..12a9bdc 100755 --- a/procmail/procmailrc +++ b/procmail/procmailrc @@ -36,6 +36,7 @@ INCLUDERC=$PMDIR/addheaders INCLUDERC=$PMDIR/handlespam #INCLUDERC=$PMDIR/autoreplies +INCLUDERC=$PMDIR/tickle INCLUDERC=$PMDIR/lurker INCLUDERC=$PMDIR/spool diff --git a/procmail/tickle b/procmail/tickle new file mode 100644 index 0000000..71edef6 --- /dev/null +++ b/procmail/tickle @@ -0,0 +1,21 @@ +:0 +* ORIGINAL_TO ?? ^[0-9]+@tickle\.madduck\.net$ +* ORIGINAL_TO ?? ^\/[0-9]+ +{ + TICKLEDIR=$BASE/.tickle.$MATCH + + :0 + * ? test ! -d $TICKLEDIR/cur + { + LOG="tickle: received message outside tickle range: $MATCH$NL" + + :0 + $DISCARD + } + + LOG="tickle: file message and tickle in $MATCH day(s)$NL" + + :0 + $TICKLEDIR/ + TICKLEDIR +}