summaryrefslogtreecommitdiff
path: root/addons/mail/models
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-08-19 14:43:31 +0200
committerChristophe Simonis <chs@odoo.com>2019-08-19 14:43:31 +0200
commit121034f79a6a4e57ed936c8672fc5f8472ca2cfd (patch)
tree18924689c1b4b90a36d130930d08155172c441ec /addons/mail/models
parent76a52bdbfbcfe1fc9411e09c122711ce3a102809 (diff)
parent1e4de19cd49c005ebe3b14558e8eca6a1f55e72f (diff)
[MERGE] forward port branch 11.0 up to 1e4de19cd49
Diffstat (limited to 'addons/mail/models')
-rw-r--r--addons/mail/models/mail_thread.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/models/mail_thread.py b/addons/mail/models/mail_thread.py
index e1127b6c44b..33515993594 100644
--- a/addons/mail/models/mail_thread.py
+++ b/addons/mail/models/mail_thread.py
@@ -1509,7 +1509,7 @@ class MailThread(models.AbstractModel):
# Very unusual situation, be we should be fault-tolerant here
message_id = "<%s@localhost>" % time.time()
_logger.debug('Parsing Message without message-id, generating a random one: %s', message_id)
- msg_dict['message_id'] = message_id
+ msg_dict['message_id'] = message_id.strip()
if message.get('Subject'):
msg_dict['subject'] = tools.decode_smtp_header(message.get('Subject'))