X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/3a35a72b02f689e9ed9ec92f45f084f761d5c8b5..519207b89004aa4a4b360767fa30aa48afaa6139:/procmail/delay-delivery diff --git a/procmail/delay-delivery b/procmail/delay-delivery index 9b79534..cfe3403 100644 --- a/procmail/delay-delivery +++ b/procmail/delay-delivery @@ -1,9 +1,12 @@ #TODO: create config/delay-(disabled|tonight|weekend) -:0 +:0 fw +* POSTPONED ?? . +|$FORMAIL -R X-Postponed X-Was-Postponed + +:0 E * ! DISABLE_DELAYS ?? . * DELAY ?? . -* ! DELAYED ?? . { #TODO: for tickling, use header date RELEASE="`$BIN_DATE -d \"$DELAY\" +'%s %c'`" @@ -21,9 +24,7 @@ { RELEASE_TIME="$MATCH" } LOG="delay: delay delivery of $MSGID until $RELEASE_TIME$NL" - - :0 fw - |$FORMAIL -I "X-Postponed: $RELEASE_TS ($RELEASE_TIME)" + POSTPONED="$RELEASE_TS ($RELEASE_TIME)" INCLUDERC=$PMDIR/record-delayed-mail