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