The following commit has been merged in the master branch:
commit 75a5d8050f05ed647a3f50dc67673152efeed7f8
Author: Michal Čihař <[email protected]>
Date:   Thu Oct 27 14:52:37 2011 +0200

    Fix crash on non text message ID

diff --git a/Wammu/MailWriter.py b/Wammu/MailWriter.py
index 56487ce..67ee988 100644
--- a/Wammu/MailWriter.py
+++ b/Wammu/MailWriter.py
@@ -210,6 +210,7 @@ def SMSToMail(cfg, sms, lookuplist = None, mailbox = False):
 
     # Add message ID
     msgid = '<%s@%s>' % (filename[:-4], sms['Number'].replace(' ', '_'))
+    msgid = msgid.encode('ascii', 'xmlcharrefreplace')
     msg.add_header('Message-ID', msgid)
 
     if mailbox:

-- 
UNNAMED PROJECT

_______________________________________________
Wammu-svn mailing list
[email protected]
https://lists.cihar.com/cgi-bin/mailman/listinfo/wammu-svn

Reply via email to