From: Brett Parker Date: Mon, 14 Sep 2009 11:15:04 +0000 (+0100) Subject: Add item fetched date header (X-rss2maildir-rundate) X-Git-Url: https://git.sommitrealweird.co.uk/rss2maildir.git/commitdiff_plain/ed5781ac5244b22a6859fa21701acc462cace372?ds=inline Add item fetched date header (X-rss2maildir-rundate) --- 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)