X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/79aefc4e56fb0bc243999c4437dbbb4bd5afa27c..4aa8bb22b96309475f5f0445e3501e14664758d3:/bin/process-tickler diff --git a/bin/process-tickler b/bin/process-tickler index c853294..d7af9b6 100755 --- a/bin/process-tickler +++ b/bin/process-tickler @@ -24,6 +24,10 @@ msgids = dict() def move_to_inbox(key): msg = tmd.get_message(key) print >>sys.stdout, 'I: move message %s to inbox' % key + if msg.has_key('X-Tickle-Delivered'): + msg.replace_header('X-Tickle-Delivered', time.strftime('%c')) + else: + msg.add_header('X-Tickle-Delivered', time.strftime('%c')) imd.add(msg) tmd.discard(key)