diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-08-19 13:54:40 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-08-19 13:54:40 +0200 |
| commit | 1e4de19cd49c005ebe3b14558e8eca6a1f55e72f (patch) | |
| tree | f53023c576ca37ba7cb9a4bfe533738409f3fe4f /addons/mail/models/mail_thread.py | |
| parent | 855447fc77fdbe2972be043b7ba9131567d21b9f (diff) | |
| parent | c43de33643ab8fd7a26b943a3325272fbcda19d2 (diff) | |
[MERGE] forward port branch saas-15 up to c43de33643a
Diffstat (limited to 'addons/mail/models/mail_thread.py')
| -rw-r--r-- | addons/mail/models/mail_thread.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/models/mail_thread.py b/addons/mail/models/mail_thread.py index 1220026c0b2..0322eeecd27 100644 --- a/addons/mail/models/mail_thread.py +++ b/addons/mail/models/mail_thread.py @@ -1527,7 +1527,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')) |
