SIT - Helpdesk Ticket Alias Mail Exception
Prevents from adding an mail alias as follower in helpdesk.
|Odoo Version: 15.0|
|Type d'abonnement: Socle|
Prevents from adding an mail alias as follower in helpdesk. Problem : Working with a catchall can create in some situations infinite Mail loops. Example : We have a catchall named : firstname.lastname@example.org The helpdesk in Odoo is configured to send an automatic email to acknowledge the reception of an email The customer has multiple mail accounts forwarded to the catchall inbox - email@example.com - firstname.lastname@example.org Normally we recommand that the mail accounts forwarded to the catchall are not used by humans. But in some cases they are and this can result in infinite mail loops. email@example.com receives an email from firstname.lastname@example.org The email is stored in email@example.com and forwarded to the catchall Odoo reads the catchall and creates a ticket for firstname.lastname@example.org and send a confirmation email. email@example.com is created or attached to an existing partner in odoo and is added as follower of the ticket. Everything is normal. Let's say now that a person decides to forward the mail recieved in firstname.lastname@example.org to email@example.com. The mail is send by firstname.lastname@example.org as a forward in email@example.com. The mail is then pushed to the catchall by firstname.lastname@example.org. Odoo reads the catchall and creates a ticket for email@example.com and send a confirmation email to mail.toto.company.com mail.toto@company is created or attached to an existing partner in odoo and is added as follower of the ticket. Now we potentially have a mail loop. Because Odoo sends a confirmation email to mail.toto@company who pushed it back to the catchall and so on. Solving the problem : This module will add a new system parameter Mail Exception Filter. In this parameter we will define the email address of all inboxes forwarded to the catchall separated with a |. Finaly when a new ticket is received Odoo will check if the sender is in this new parameter. If so confirmation email is not send, no partner will be creater for the sender of the email preventing therefore the creation of a mail loop. Also this module will prevent creating partners with emails