Thursday, February 13, 2025
1 change · saas-17.4
Resolved issues and error corrections
Odoo now prioritizes the email alias a message was sent to over older reply-thread references when routing forwarded emails. This prevents forwarded or manually referenced messages from being added to the wrong mailing group, helping keep group conversations separated and accurate.
Original PR description
When you forward a mail from odoo, odoo will use the reference to the existing message and append it to the message's thread. This is undesirable when forwarding mail group emails to different groups. Reproduce --- - install mail_group - Add an alias "example.com" in settings - Create two public mailing groups: - mga "Email Alias": mga@example.com - mgb "Email Alias": mgb@example.com - Send 1st email to mga (ref.1) - Obtain Message-ID given to 1st message - Use obtained id in reference header of 2nd message (ref.2) and send it to mgb - BUG: email sent to mgb arrives at mga (ref.1) --- ```eml From: <member1@example.com> Subject: sent to mga To: <mga@example.com> Initiall email sent to mga ``` (ref.2) --- ```eml From: <member2@example.com> Subject: sent to mgb To: <mgb@example.com> References: <1725354872.2640402@localhost> Message to mgb with References added manually ``` Update References header value in the above eml opw-3820925