[FIX] mail: don't add same local part as follower
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
Why is the alias added as follow in the first place ?
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
