X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/764f42aae3e19194a1d356fa7ed7821223e02ccd..8bd902b7f9e312519c9ec2b9ce08c54807c5f3db:/procmail/tickle diff --git a/procmail/tickle b/procmail/tickle index 6557848..0a40a1b 100644 --- a/procmail/tickle +++ b/procmail/tickle @@ -4,6 +4,7 @@ { TICKLE="$MATCH" } :0 E +* ! POSTPONED ?? . * ORIGINAL_TO ?? ^.+@tickle\.madduck\.net$ * ORIGINAL_TO ?? ^\/[^@]+ { TICKLE="$MATCH" } @@ -49,10 +50,16 @@ 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" + + # unset DISABLE_DELAYS to always enable delaying for tickle messages DISABLE_DELAYS }