From: martin f. krafft Date: Mon, 3 Mar 2008 09:10:08 +0000 (+0100) Subject: delay all mail to the afternoon X-Git-Url: https://git.madduck.net/etc/mailfilter.git/commitdiff_plain/0bdaf799927d3d663247f2506f23f28497dbdd37?ds=inline delay all mail to the afternoon --- diff --git a/procmail/defines b/procmail/defines index 43945cd..55508cb 100644 --- a/procmail/defines +++ b/procmail/defines @@ -80,8 +80,9 @@ DISCARD=$BASE/.discard/ SPAM=$BASE/.spam/ #DISCARD="'|$DELIVER -m BASE.discard'" -DELAY_NEXT_WEEKEND='next sunday 28 hours ago' # fri night, 20:00 +DELAY_NEXT_WEEKEND='next sunday 30 hours ago' # fri night, 18:00 DELAY_TONIGHT='tomorrow 00:00 4 hours ago' # tonight at 20:00 +DELAY_AFTERNOON='tomorrow 00:00 9 hours ago' # todat at 15:00 OURDATE="`$BIN_DATE +'%s %Y.%m.%d.%H.%M.%N %a, %d %b %Y %T %z'`" :0 diff --git a/procmail/rules/all b/procmail/rules/all index 8f43eb7..36e27a3 100644 --- a/procmail/rules/all +++ b/procmail/rules/all @@ -1,6 +1,8 @@ :0 * ! DEST ?? . { + DELAY="$DELAY_AFTERNOON" + INCLUDERC=$PMRULES/feeds INCLUDERC=$PMRULES/mass INCLUDERC=$PMRULES/admin diff --git a/procmail/rules/gpg b/procmail/rules/gpg index 76f575d..856bea2 100644 --- a/procmail/rules/gpg +++ b/procmail/rules/gpg @@ -1,4 +1,7 @@ :0 * ^User-Agent: caff * ^Subject: Your signed PGP key -DEST=$BASE/ +{ + DELAY="$DELAY_TONIGHT" + DEST=$BASE/ +}