-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] mail: add message_id in references to help thread formation
Issue: when using Amazon's SES SMTP service they rewrite the Message-Id of all outgoing messages. When someone replies, In-Reply-To contains the SES Message-Id which we don't know. Threading is therefore broken. Amazon requires to remember new Message-Id and handle it ourself, which is complicated [1]. Possible solution: copy the Message-Id to References in outgoing message as if we were pretending that the message is part of a pre-existing thread with itself. Since Amazon does not alter References it is kept during transport. Replies will therefore contain both Amazon Message-Id and Odoo Message-Id as well as original parent Message-Id in case of nested replies. * ``In-Reply-To``: Amazon Msg-Id * ``References``: Odoo Parent Msg-Id Odoo Msg-Id Task-2643114 (Mail: Message-Id in references to ease thread formation) [1] https://docs.aws.amazon.com/ses/latest/DeveloperGuide/header-fields.html closes #81901 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
- Loading branch information
1 parent
7f0908e
commit abf993a
Showing
3 changed files
with
52 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters