OK.. I feel silly now. I guess I looked at FORCE_FROM first and somehow
didn't read through all the config options (I looked at the manpage I
promise :) I guess it could have failed more clearly (maybe "hey this
isn't an email address" - although IIRC validating an RFC 822 address is
a huge regexp). Oh well. Thanks for all your help.
Martin Michlmayr wrote:
* James Curbo <[EMAIL PROTECTED]> [2005-09-15 19:08]:
DEFAULT_FROM = 1
This is really user error. DEFAULT_FROM takes an email address (i.e.
a string) rather than an integer (see "man r2e"). However, I suppose
the following patch cannot do any harm:
--- /usr/share/rss2email/rss2email.py~ 2005-09-16 08:17:09.000000000 +0100
+++ /usr/share/rss2email/rss2email.py 2005-09-16 08:29:20.000000000 +0100
@@ -217,7 +217,7 @@
def getEmail(feed, entry):
"""Get the best email_address."""
- if FORCE_FROM: return DEFAULT_FROM
+ if FORCE_FROM: return str(DEFAULT_FROM)
if 'email' in entry.get('author_detail', []):
return entry.author_detail.email
@@ -234,7 +234,7 @@
if feed.get("errorreportsto", ''):
return feed.errorreportsto
- return DEFAULT_FROM
+ return str(DEFAULT_FROM)
### Simple Database of Feeds ###
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]