From 386030e44bd396fc33e327c54547eaadfb776938 Mon Sep 17 00:00:00 2001 From: Aaron Swartz Date: Thu, 26 Aug 2004 12:01:00 +0000 Subject: [PATCH] Add rss2email v2.53 typo errors. Downloaded from: http://web.archive.org/web/20050214084518/http://www.aaronsw.com/2002/rss2email/rss2email-2.53.py --- rss2email.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/rss2email.py b/rss2email.py index 294144c..9663d1a 100644 --- a/rss2email.py +++ b/rss2email.py @@ -10,7 +10,7 @@ Usage: list delete n """ -__version__ = "2.52" +__version__ = "2.53" __author__ = "Aaron Swartz (me@aaronsw.com)" __copyright__ = "(C) 2004 Aaron Swartz. GNU GPL 2." ___contributors__ = ["Dean Jackson", "Brian Lalor", "Joey Hess", @@ -79,7 +79,6 @@ def send(fr, to, message): i.close(); o.close() del i, o - ## html2text options ## # Use Unicode characters instead of their ascii psuedo-replacements @@ -161,7 +160,7 @@ def getContent(entry, HTMLOK=0): if entry.get('summary_detail', {}): entry.content = entry.get('content', []) + [entry.summary_detail] - if entry.content: + if entry.get('content', []): if HTMLOK: for c in entry.content: if contains(c.type, 'html'): return ('HTML', c.value) @@ -376,8 +375,7 @@ def run(num=None): content = getContent(entry, HTMLOK=HTML_MAIL) link = unu(entry.get('link', "")) - print entry.link - + from_addr = unu(getEmail(r.feed, entry)) message = ( @@ -422,7 +420,7 @@ def run(num=None): print >>warn, "feedparser", feedparser.__version__ print >>warn, "html2text", h2t.__version__ print >>warn, "Python", sys.version - print>>warn, "=== END HERE ===" + print >>warn, "=== END HERE ===" continue finally: -- 2.26.2