[FIX] mail: typos -> message-id header is mapped to message_id column

bzr revid: odo@openerp.com-20121009134020-9wf96yszv8qcmbm1
This commit is contained in:
Olivier Dony 2012-10-09 15:40:20 +02:00
parent fac6e9246b
commit 0ce1ef32a8
1 changed files with 2 additions and 2 deletions

View File

@ -422,7 +422,7 @@ class mail_thread(osv.AbstractModel):
model_pool = self.pool.get(model)
assert thread_id and hasattr(model_pool, 'message_update') or hasattr(model_pool, 'message_new'), \
"Undeliverable mail with Message-Id %s, model %s does not accept incoming emails" % \
(msg['message-id'], model)
(msg['message_id'], model)
if thread_id and hasattr(model_pool, 'message_update'):
model_pool.message_update(cr, user_id, [thread_id], msg, context=context)
else:
@ -538,7 +538,7 @@ class mail_thread(osv.AbstractModel):
field may not be present if missing in original
message::
{ 'message-id': msg_id,
{ 'message_id': msg_id,
'subject': subject,
'from': from,
'to': to,