Add rss2email v2.31 v2.31
authorAaron Swartz <me@aaronsw.com>
Mon, 16 Feb 2004 12:00:00 +0000 (12:00 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 15 Feb 2013 16:54:26 +0000 (11:54 -0500)
Fix FORCE_FROM handling.

Downloaded from:

  http://web.archive.org/web/20040825081604/http://www.aaronsw.com/2002/rss2email/rss2email-2.31.py

rss2email.py

index 124e423785873f2cc3b3fb4beab87db9b8802f72..c5c8ccad59f86597f18318a17f427ae587e94cda 100644 (file)
@@ -12,7 +12,7 @@ Usage: python rss2email.py feedfile action [options]
        list
        delete n
 """
-__version__ = "2.3"
+__version__ = "2.31"
 __author__ = "Aaron Swartz (me@aaronsw.com)"
 __copyright__ = "(C) 2004 Aaron Swartz. GNU GPL 2."
 ___contributors__ = ["Dean Jackson (dino@grorg.org)", 
@@ -162,7 +162,7 @@ def run():
                                
                                headers = "From: "
                                if c.has_key('title'): headers += quoteEmailName(e(c, 'title')) + ' '
-                               if FORCE_FROM and c.has_key(ert) and c[ert].startswith('mailto:'):
+                               if (not FORCE_FROM) and c.has_key(ert) and c[ert].startswith('mailto:'):
                                        fr = c[ert][7:]
                                else:
                                        fr = DEFAULT_FROM