X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/bde9ad98bd5b3f56f35e38ae869ccc122e14b5a0..7047e6e0505152b6aa2242e1975340a99f5e57e3:/procmail/tickle 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 +}