From 79b4568d9e1dc2e66f9ae143cabf3acb90eebfa9 Mon Sep 17 00:00:00 2001 From: Aaron Swartz Date: Mon, 16 Feb 2004 12:00:00 +0000 Subject: [PATCH] Add rss2email v2.31 Fix FORCE_FROM handling. Downloaded from: http://web.archive.org/web/20040825081604/http://www.aaronsw.com/2002/rss2email/rss2email-2.31.py --- rss2email.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rss2email.py b/rss2email.py index 124e423..c5c8cca 100644 --- a/rss2email.py +++ b/rss2email.py @@ -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 -- 2.26.2