Commit 49903c56 authored by Romain Courteaud's avatar Romain Courteaud

Revert previous modification, as it is not compatible with erp5_crm Business

Template.
Then, it seems inconsistent to process only the main part of the message, 
and not it's subpart.
Instead, it could be better to improve the date structure send to ERP5
by CMFMailin.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14825 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d5ca07df
......@@ -76,10 +76,8 @@ def MailInTool_postUTF8MailMessage(self, file=None):
payload = unicode(payload, charset).encode('utf-8')
if body_found:
# Keep the content type
# since this is not a body, this must be
# an attached email - we want it whole (with the headers)
theMail['attachment_list'].append((file_name,
content_type, part.as_string()))
content_type, payload))
else:
theMail['body'] = payload
body_found = 1
......
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