X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/bfbb91fbfd5ab6d4e3321fa01db21a5bd96be303..22ae42b9d0e4e2fc052da922ae9c20bc4862940e:/procmail/tickle diff --git a/procmail/tickle b/procmail/tickle index 1a3388d..2128713 100644 --- a/procmail/tickle +++ b/procmail/tickle @@ -1,11 +1,8 @@ # The X-Tickle header has priority over the Original-To address :0 +* ! POSTPONED ?? . *$ ^X-Tickle:${RE_SPACE}+\/${RE_NOT_SPACE}+ -{ - TICKLE="$MATCH" - :0 fw - |$FORMAIL -IX-Tickle -} +{ TICKLE="$MATCH" } :0 E * ! POSTPONED ?? . @@ -54,13 +51,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 + :0 fw + |$FORMAIL -I"X-Tickle: $RELEASE" + + # store messages as read + MARK_READ=tickler + # unset DISABLE_DELAYS to always enable delaying for tickle messages DISABLE_DELAYS } -TICKLE - # vim:ft=procmail