Commit 9ad9a65c authored by Nicolas Delaby's avatar Nicolas Delaby

* Always define content_type_header if not found in message metadata

* Fix typo Content-Type != Content-type


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35344 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 22b439fd
......@@ -241,7 +241,9 @@ class EmailDocument(TextDocument):
if 'Content-Type' in kw:
content_type_header = kw['Content-Type']
elif 'Content-type' in kw:
content_type_header = kw['Content-Type']
content_type_header = kw['Content-type']
else:
content_type_header = ''
file_name_list = re.findall(file_name_regexp,
content_type_header,
re.MULTILINE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment