X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/31877acd11ca3a95cf85fa4cb227f489f3d4877b..09d4ef213c4a6e5588c1944107a94da0ab44ee8c:/procmail/delay-delivery diff --git a/procmail/delay-delivery b/procmail/delay-delivery index 543c01c..405cbcb 100644 --- a/procmail/delay-delivery +++ b/procmail/delay-delivery @@ -1,12 +1,9 @@ -:0 -* ^X-Mailer: swaks -{ DELAY="30 seconds" } - # create table messages (msgid text unique not null, filename text # primary key not null unique, release_ts integer not null); :0 * DELAY ?? . +* ! DELAYED ?? . { #TODO: for tickling, use header date RELEASE="`date -d \"now + $DELAY\" +'%s %c'`" @@ -30,7 +27,7 @@ TRAP="$TRAP; $DO_QUERY '$Q'" :0 fw - |$FORMAIL -I "X-Delay: $RELEASE_TS ($RELEASE_TIME)" + |$FORMAIL -I "X-Delayed: $RELEASE_TS ($RELEASE_TIME)" :0 $DELAYED_QUEUE