From bda8338eb8f1274f9a1dec73bdb47f80cfe9413f Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sun, 26 Aug 2007 22:14:47 +0200 Subject: [PATCH] timestamp on delivery to inbox --- bin/process-tickler | 1 + procmail/tickle | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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$ -- 2.39.2