Attachment 'encodeAddress-fix-MIME-spacing-v2.patch'
Download 1 --- MoinMoin_util_mail.py 2009/03/26 12:27:40 1.1
2 +++ MoinMoin_util_mail.py 2009/03/27 09:27:33 1.3
3 @@ -27,14 +27,14 @@
4 @rtype: string
5 @return: encoded address
6 """
7 - composite = re.compile(r'(?P<phrase>.+)(?P<angle_addr>\<.*\>)',
8 + composite = re.compile(r'(?P<phrase>.*?)(?P<blanks>\s*)(?P<angle_addr>\<.*\>)',
9 re.UNICODE)
10 match = composite.match(address)
11 if match:
12 phrase = match.group('phrase').encode(config.charset)
13 phrase = str(Header(phrase, charset))
14 angle_addr = match.group('angle_addr').encode(config.charset)
15 - return phrase + angle_addr
16 + return phrase + match.group('blanks') + angle_addr
17 else:
18 return address.encode(config.charset)
19
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.