Bug#526064: rss2email: garbles messages

2011-08-26 Thread Etienne Millon
* Jakub Wilk uba...@users.sf.net [110826 16:31]:
 Package: rss2email
 Version: 1:2.65-1
 Severity: important
 
 rss2email produces totally garbled messages for the following feed:
 http://www.rp.pl/rss/10.html
 
 This is probably related to the following Python bug:
 http://bugs.python.org/issue5871

Hello,

Now that #545191 has been fixed upstream, do you think we can close
these bug reports ?

-- 
Etienne Millon



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#545191: Bug#526064: rss2email: garbles messages

2011-08-26 Thread Jakub Wilk

submitter 526064 !
submitter 545191 !
submitter 545195 !
submitter 545196 !
submitter 545197 !
thanks

* Etienne Millon etienne.mil...@gmail.com, 2011-08-26, 18:37:
rss2email produces totally garbled messages for the following feed: 
http://www.rp.pl/rss/10.html


This is probably related to the following Python bug: 
http://bugs.python.org/issue5871


Now that #545191 has been fixed upstream,


It's not fixed in Debian, at least not in python2.6. (It is fixed in 
python2.7, but in such a pathetic way that it doesn't help rss2email 
even a bit.)



do you think we can close these bug reports ?


No.

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#526064: rss2email: garbles messages

2011-08-26 Thread Etienne Millon
* Jakub Wilk jw...@debian.org [110826 18:57]:
 Now that #545191 has been fixed upstream,
 
 It's not fixed in Debian, at least not in python2.6. (It is fixed in
 python2.7, but in such a pathetic way that it doesn't help rss2email
 even a bit.)
 
 do you think we can close these bug reports ?
 
 No.

The example RSS feed works with a newer rss2email, so I assumed that
it was merged in debian. I will investigate what makes it work.

Thanks !

-- 
Etienne Millon



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#526064: rss2email: garbles messages

2011-08-26 Thread Jakub Wilk

* Etienne Millon etienne.mil...@gmail.com, 2011-08-26, 19:02:

The example RSS feed works with a newer rss2email,


Well, RSS feeds have tendency to change over time, you know. :)

I naïvely assumed that the bug will be promptly fixed; otherwise I would 
have attached the actual feed contents to the bug report.


--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#526064: rss2email: garbles messages

2009-04-29 Thread Jakub Wilk

Patch attached.

--
Jakub Wilk
diff --git a/rss2email.py b/rss2email.py
--- a/rss2email.py
+++ b/rss2email.py
@@ -91,9 +91,16 @@
 CHARSET_LIST='US-ASCII', 'BIG5', 'ISO-2022-JP', 'ISO-8859-1', 'UTF-8'
 
 from email.MIMEText import MIMEText
-from email.Header import Header
+from email.Header import Header as _Header
 from email.Utils import parseaddr, formataddr
-			 
+
+class Header(_Header):
+	# Work-around for http://bugs.python.org/issue5871
+	def append(self, s=None, *args, **kwargs):
+		if s is not None:
+			s = s.replace('\n', ' ').replace('\r', ' ')
+		_Header.append(self, s, *args, **kwargs)
+
 # Note: You can also override the send function.
 
 def send(sender, recipient, subject, body, contenttype, extraheaders=None, smtpserver=None):


Bug#526064: rss2email: garbles messages

2009-04-28 Thread Jakub Wilk

Package: rss2email
Version: 1:2.65-1
Severity: important

rss2email produces totally garbled messages for the following feed:
http://www.rp.pl/rss/10.html

This is probably related to the following Python bug:
http://bugs.python.org/issue5871

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages rss2email depends on:
ii  python2.5.4-2An interactive high-level object-o
ii  python-feedparser 4.1-13 Universal Feed Parser for Python
ii  python-support1.0.2  automated rebuilding support for P

rss2email recommends no packages.

rss2email suggests no packages.

-- no debconf information

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org