From 1b72e6f39441cb2ae45bdf5736a294514a4fdc59 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Thu, 10 Jan 2013 20:45:23 +0100 Subject: [PATCH] Better spaces detection. fix #359 --- modoboa/lib/u2u_decode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modoboa/lib/u2u_decode.py b/modoboa/lib/u2u_decode.py index a9126f79b..f09304742 100644 --- a/modoboa/lib/u2u_decode.py +++ b/modoboa/lib/u2u_decode.py @@ -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.