Add rss2email v2.55 v2.55
authorAaron Swartz <me@aaronsw.com>
Wed, 3 Aug 2005 12:00:00 +0000 (12:00 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 15 Feb 2013 17:04:07 +0000 (12:04 -0500)
datetime parsing bug

Downloaded from:

  http://web.archive.org/web/20060215024552/http://www.aaronsw.com/2002/rss2email/rss2email-2.55.py

rss2email.py

index 2221bf1bf0ad7b79723d99acd3a49095d4c083cf..4f58415bdfddede61a58d728b67153b24151592a 100644 (file)
@@ -10,7 +10,7 @@ Usage:
   list
   delete n
 """
-__version__ = "2.54"
+__version__ = "2.55"
 __author__ = "Aaron Swartz (me@aaronsw.com)"
 __copyright__ = "(C) 2004 Aaron Swartz. GNU GPL 2."
 ___contributors__ = ["Dean Jackson", "Brian Lalor", "Joey Hess", 
@@ -373,7 +373,7 @@ def run(num=None):
                                        if DATE_HEADER:
                                                for datetype in DATE_HEADER_ORDER:
                                                        kind = datetype+"_parsed"
-                                                       if kind in entry: datetime = entry[kind]
+                                                       if kind in entry and entry[kind]: datetime = entry[kind]
                                                
                                        content = getContent(entry, HTMLOK=HTML_MAIL)