Commit 9455b73d authored by Romain Courteaud's avatar Romain Courteaud

Handle non ascii characters.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24198 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7847a23e
...@@ -166,8 +166,8 @@ def buildEmailMessage(from_url, to_url, msg=None, ...@@ -166,8 +166,8 @@ def buildEmailMessage(from_url, to_url, msg=None,
part.add_header('Content-Disposition', part.add_header('Content-Disposition',
'attachment; filename=%s' % attachment_name) 'attachment; filename=%s' % attachment_name)
part.add_header('Content-ID', part.add_header('Content-ID', '<%s>' % \
'%s' % attachment_name) ''.join(['%s' % ord(i) for i in attachment_name]))
message.attach(part) message.attach(part)
return message return message
......
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