Commits

Patrick Mézard committed 48a87c3

Be more tolerant with quoted-printable subjects

It can be written like =?UTF-8?Q? instead of =?UTF-8?q?

Comments (0)

Files changed (1)

 # the encoding to MIME quoted-printable:
 # '=?cp1252?q?=5BPATCH_1_of_2=5D_Fix_issue_1782_don=92t_do_url2pathname_conv?=\n
 # \t=?cp1252?q?ersion_for_urls?='
-re_quopri = re.compile(r'^=\?([^\?]+)\?q\?(.*)\?=$')
+re_quopri = re.compile(r'^=\?([^\?]+)\?q\?(.*)\?=$', re.I)
 
 def parsequopri(s):
     """If s is encoded as quoted-printable then convert to utf-8 encoding"""