]> git.sommitrealweird.co.uk Git - rss2maildir.git/commitdiff
Add item fetched date header (X-rss2maildir-rundate)
authorBrett Parker <iDunno@sommitrealweird.co.uk>
Mon, 14 Sep 2009 11:15:04 +0000 (12:15 +0100)
committerBrett Parker <iDunno@sommitrealweird.co.uk>
Mon, 14 Sep 2009 11:15:04 +0000 (12:15 +0100)
rss2maildir.py

index 4ee21260685f23e48a7ff072fd78df7dda3d814e..482aaafd7943a9e681eab8c2fd69dfeb227ee816 100755 (executable)
@@ -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'&lt;', title)