This commit is contained in:
Benjamin Dauvergne 2012-05-10 11:36:42 +02:00
parent b81c2afbaf
commit f66d9ca3ca
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ In case of failure the following return value is returned:
def decode_filename(self, filename):
'''See if the filename contains encoded-word work around bugs in FileMakerPro'''
m = re.match(r'=\?(.*)\?(.*)\?(.*)\?=', s)
m = re.match(r'=\?(.*)\?(.*)\?(.*)\?=', filename)
if m:
result = []
for content, encoding in email.header.decode_header(filename):