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 : email@example.com 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 - firstname.lastname@example.org - email@example.com 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. firstname.lastname@example.org receives an email from email@example.com The email is stored in firstname.lastname@example.org and forwarded to the catchall Odoo reads the catchall and creates a ticket for email@example.com and send a confirmation email. firstname.lastname@example.org 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 email@example.com to firstname.lastname@example.org. The mail is send by email@example.com as a forward in firstname.lastname@example.org. The mail is then pushed to the catchall by email@example.com. Odoo reads the catchall and creates a ticket for firstname.lastname@example.org 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