odoo icon indicating copy to clipboard operation
odoo copied to clipboard

[FIX] mail: don't add same local part as follower

Open ryce-odoo opened this issue 1 year ago • 1 comments

With the introduction of alias domains in 17.0, redirected emails from non Odoo addresses would automatically add the original email as a follower. This would cause an infinite loop of emails to be sent to and from the database.

Using the setting on aliases "alias_incoming_local" allows us to check the local part of aliases that have this enabled to prevent this from happening if the redirect email and the alias on the database have the same local part. Thus, the additional email will not be added as a follower.

opw-3920634

I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

ryce-odoo avatar May 16 '24 22:05 ryce-odoo

Pull request status dashboard.

robodoo avatar May 16 '24 22:05 robodoo

Why is the alias added as follow in the first place ?

tde-banana-odoo avatar May 17 '24 07:05 tde-banana-odoo

Why is the alias added as follow in the first place ?

Hey @tde-banana-odoo I have found the issue that is specific to the helpdesk module. Looks like a 7 year old bug was uncovered from the change to alias domain. You can find this in this enterprise PR: https://github.com/odoo/enterprise/pull/63477

ryce-odoo avatar May 29 '24 20:05 ryce-odoo