Better spaces detection.

fix #359
This commit is contained in:
Antoine Nguyen
2013-01-10 20:45:23 +01:00
parent 0eab4959b0
commit 1b72e6f394
+1 -1
View File
@@ -10,7 +10,7 @@ sre = re.compile(r'\?=[ \t]+=\?')
# re pat for MIME encoded_word (without trailing spaces)
mre = re.compile(r'=\?[^?]*?\?[bq]\?[^? \t]*?\?=', re.I)
tre = re.compile('=\?.+\?=')
tre = re.compile('=\?[^?]*\?=')
def decode_mime(m):
# substitute matching encoded_word with unicode equiv.