From: martin f. krafft Date: Sun, 26 Aug 2007 20:14:47 +0000 (+0200) Subject: timestamp on delivery to inbox X-Git-Url: https://git.madduck.net/etc/mailfilter.git/commitdiff_plain/bda8338eb8f1274f9a1dec73bdb47f80cfe9413f?ds=sidebyside timestamp on delivery to inbox --- diff --git a/bin/process-tickler b/bin/process-tickler index c853294..0c3839f 100755 --- a/bin/process-tickler +++ b/bin/process-tickler @@ -24,6 +24,7 @@ msgids = dict() def move_to_inbox(key): msg = tmd.get_message(key) print >>sys.stdout, 'I: move message %s to inbox' % key + msg.add_header('X-Tickle-Delivered', time.strftime('%c')) imd.add(msg) tmd.discard(key) diff --git a/procmail/tickle b/procmail/tickle index 1eb4ce6..8ad5ac9 100644 --- a/procmail/tickle +++ b/procmail/tickle @@ -5,7 +5,7 @@ STAMP :0 * MATCH ?? ^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]$ - { STAMP=$MATCH } + { STAMP="$MATCH (`/bin/date -d @$MATCH +%c`)" } :0 E * MATCH ?? ^[0-9]+m$