diff roundup/rfc2822.py @ 3639:97f9fc0bc0ea

Yet another rfc2822 encoding patch: '?' must be escaped. Fixes [SF#1505663] "'?' in rfc2822-encoded header isn't quoted +patch"
author Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
date Sat, 15 Jul 2006 10:11:09 +0000
parents 0c34f5a116ef
children
line wrap: on
line diff
--- a/roundup/rfc2822.py	Sat Jul 15 10:08:01 2006 +0000
+++ b/roundup/rfc2822.py	Sat Jul 15 10:11:09 2006 +0000
@@ -141,7 +141,7 @@
         if c == ' ':
             quoted += '_'
         # These characters can be included verbatim
-        elif hqre.match(c) and c not in '_=':
+        elif hqre.match(c) and c not in '_=?':
             quoted += c
         # Otherwise, replace with hex value like =E2
         else:

Roundup Issue Tracker: http://roundup-tracker.org/