[Erp5-report] r24198 - /erp5/trunk/products/ERP5/Tool/NotificationTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Oct 15 16:12:13 CEST 2008
Author: romain
Date: Wed Oct 15 16:12:06 2008
New Revision: 24198
URL: http://svn.erp5.org?rev=24198&view=rev
Log:
Handle non ascii characters.
Modified:
erp5/trunk/products/ERP5/Tool/NotificationTool.py
Modified: erp5/trunk/products/ERP5/Tool/NotificationTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/NotificationTool.py?rev=24198&r1=24197&r2=24198&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/NotificationTool.py (original)
+++ erp5/trunk/products/ERP5/Tool/NotificationTool.py Wed Oct 15 16:12:06 2008
@@ -166,8 +166,8 @@
part.add_header('Content-Disposition',
'attachment; filename=%s' % attachment_name)
- part.add_header('Content-ID',
- '%s' % attachment_name)
+ part.add_header('Content-ID', '<%s>' % \
+ ''.join(['%s' % ord(i) for i in attachment_name]))
message.attach(part)
return message
More information about the Erp5-report
mailing list