[FIX] received messages now have 'received' status

bzr revid: tde@openerp.com-20120510151445-22hqlp82dlv11v7p
This commit is contained in:
Thibault Delavallée
2012-05-10 17:14:45 +02:00
parent 08c05344fc
commit 959551022d
+3
View File
@@ -553,6 +553,9 @@ class mail_thread(osv.osv):
msg_txt = email.message_from_string(message)
msg = mail_message.parse_message(msg_txt, save_original=save_original, context=context)
# update state
msg['state'] = 'received'
if strip_attachments and 'attachments' in msg:
del msg['attachments']