X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/75e25f19dcf7f61080a1e728affd40e5ee7dcea0..93fa45a381230a8b2ff18087e2fd6e7679ead0ad:/procmail/tickle diff --git a/procmail/tickle b/procmail/tickle index bc4572d..cc03d4a 100644 --- a/procmail/tickle +++ b/procmail/tickle @@ -1,18 +1,18 @@ +# The X-Tickle header has priority over the Original-To address :0 -* ORIGINAL_TO ?? ^.+@tickle\.madduck\.net$ -* ORIGINAL_TO ?? ^\/[^@]+ +*$ ^X-Tickle:${RE_SPACE}+\/${RE_NOT_SPACE}+ { TICKLE="$MATCH" } :0 E -*$ ^X-Tickle:${RE_SPACE}+\/${RE_NOT_SPACE}+ +* ! POSTPONED ?? . +* ORIGINAL_TO ?? ^.+@tickle\.madduck\.net$ +* ORIGINAL_TO ?? ^\/[^@]+ { TICKLE="$MATCH" } :0 * TICKLE ?? . * ! DEST ?? . -* ! TICKLE_DELIVERED ?? . { - LOG="tickle: '$TICKLE'$NL" DAILY_DELIVERY_TIME=04:20 JUST_DATE="`$BIN_DATE -d \"$DATE\" +%x`" @@ -50,13 +50,20 @@ JUST_DATE DAILY_DELIVERY_TIME - LOG="tickle: delaying message until $DELAY$NL" + :0 + { RELEASE="`$BIN_DATE -d \"$DELAY\" +'%s (%c)'`" } + + LOG="tickle: delaying message until $RELEASE$NL" DELAYED_QUEUE=$TICKLER_QUEUE - # unset DISABLE_DELAYS to enable delaying for tickle messages + :0 fw + |$FORMAIL -I"X-Tickle: $RELEASE" + + # store messages as read + MARK_READ=true + + # unset DISABLE_DELAYS to always enable delaying for tickle messages DISABLE_DELAYS } -TICKLE - # vim:ft=procmail