From ed5781ac5244b22a6859fa21701acc462cace372 Mon Sep 17 00:00:00 2001 From: Brett Parker Date: Mon, 14 Sep 2009 12:15:04 +0100 Subject: [PATCH] Add item fetched date header (X-rss2maildir-rundate) --- rss2maildir.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rss2maildir.py b/rss2maildir.py index 4ee2126..482aaaf 100755 --- a/rss2maildir.py +++ b/rss2maildir.py @@ -742,6 +742,8 @@ def parse_and_deliver(maildir, url, statedir): except: pass msg.add_header("Date", createddate) + msg.add_header("X-rss2maildir-rundate", datetime.datetime.now() \ + .strftime("%a, %e %b %Y %T -0000") subj_gen = HTML2Text() title = item["title"] title = re.sub(u'<', u'<', title) -- 2.39.5