diff roundup/rfc2822.py @ 1628:ea1afeb64b45

more pedantic rfc2822 header qp encoding
author Andrey Lebedev <kedder@users.sourceforge.net>
date Tue, 06 May 2003 21:49:20 +0000
parents 0634f815b90c
children fc52d57c6c3e 1d86402ce5e8
line wrap: on
line diff
--- a/roundup/rfc2822.py	Wed Apr 30 01:28:37 2003 +0000
+++ b/roundup/rfc2822.py	Tue May 06 21:49:20 2003 +0000
@@ -1,4 +1,5 @@
 import re
+from string import letters, digits
 from binascii import b2a_base64, a2b_base64
 
 ecre = re.compile(r'''
@@ -11,7 +12,7 @@
   \?=                   # literal ?=
   ''', re.VERBOSE | re.IGNORECASE)
 
-hqre = re.compile(r'^[-a-zA-Z0-9!*+/\[\]., ]+$')
+hqre = re.compile(r'^[A-z0-9!"#$%%&\'()*+,-./:;<=>?@\[\]^_`{|}~ ]+$')
 
 def base64_decode(s, convert_eols=None):
     """Decode a raw base64 string.

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