Hi Martin & Joey,
I can confirm that bug on my system. It seems to happen on long subject
lines AND when you have set the BODY_WIDTH parameter to force line wrapping.
I had a look at the code and from my understanding of the Python strip
function it should be ok. Nevertheless I added one line of code to
replace newlines in the subject with spaces and since that moment the
problem never occured again. Here is my patch:
$ diff -u rss2email.py~ rss2email.py
--- rss2email.py~ 2006-12-13 20:34:03.000000000 +0100
+++ rss2email.py 2007-05-25 09:54:09.000000000 +0200
@@ -582,6 +582,7 @@
fromhdr = '"'+ name + '" <' + from_addr
+ ">"
tohdr = (f.to or default_to)
subjecthdr = html2text(title).strip()
+ subjecthdr = subjecthdr.replace("\n",
" ")
datehdr = time.strftime("%a, %d %b %Y
%H:%M:%S -0000", datetime)
useragenthdr = "rss2email"
extraheaders = {'Date': datehdr,
'User-Agent': useragenthdr}
Hope that helps
Rainer
--
Dipl.-Inf. (FH) Rainer Koenig
Project Manager Linux Business Clients
Dept. IP BC E SW OS
Fujitsu Siemens Computers
Bürgermeister-Ullrich-Str. 100
86199 Augsburg
Germany
Telephone: +49-821-804-3321
Telefax: +49-821-804-2131
Mail: mailto:[EMAIL PROTECTED]
Internet www.fujitsu-siemens.com
Company Details www.fujitsu-siemens.com/imprint.html