diff roundup/rfc2822.py @ 3492:285d90265a08

fix mangling of "_" in mail Subject class name [SF#1413852]
author Richard Jones <richard@users.sourceforge.net>
date Wed, 25 Jan 2006 02:26:49 +0000
parents c77483d2cda4
children 0c34f5a116ef
line wrap: on
line diff
--- a/roundup/rfc2822.py	Wed Jan 25 02:24:28 2006 +0000
+++ b/roundup/rfc2822.py	Wed Jan 25 02:26:49 2006 +0000
@@ -141,7 +141,7 @@
         if c == ' ':
             quoted += '_'
         # These characters can be included verbatim
-        elif hqre.match(c):
+        elif hqre.match(c) and c != '_':
             quoted += c
         # Otherwise, replace with hex value like =E2
         else:

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