Mail Routing: unassigned incoming mail list, move message to another record
by Aerya IT Solutions https://aerya.net$ 38.35
Odoo 17, 18, 19 and 20, Community and Enterprise · Developed in the European Union by Aerya IT Solutions
Mail Routing: unassigned incoming mail list, move message to another record
Incoming mails that match no record are kept in an Unassigned Mail list instead of disappearing or bouncing. Assign each one to the right contact, lead, ticket or task, or create one from it, and move any chatter message to another record.
Assign to any record or create a lead, ticket, task, contact
Move e-mails and notes between records, replies follow
One searchable list of all messages
Runs on Odoo.sh and on-premise, not on Odoo Online (SaaS), where Odoo does not allow modules with Python code. Please buy the version that matches your database.
Screenshots of Odoo 17 Enterprise with the data of a fictitious company.
raw RFC 822 mails fed through Odoo's mail gateway: no route, catchall, alias, reply, assign, move, access rights and every menu in the browser
no warnings, on the four versions
depends on Discuss alone, tested on Community and Enterprise
Every lost mail in one list
When a mail reaches Odoo and no record takes it (no reply reference, no alias, no default model on the incoming mail server), the mail gateway gives up: the error goes to the server log and nobody ever sees the mail. With this module it lands in Mail Routing › Unassigned Mail with its sender, recipients, subject, text and attachments.
Mails written only to the catchall address are kept too, instead of bouncing back to your customer with a delivery error. Newsletters and spam are discarded with one click (and can be brought back). Unassigned mail is visible only to the Mail Routing users of the company and cannot be edited.

Assign it to any record, or create one
Click Assign and choose any record with a chatter: a contact, an opportunity, a ticket, a task, a sales order, a vendor bill. Or create a new lead, helpdesk ticket, task, applicant or contact straight from the mail. When the sender is a known contact, the contact is proposed.
Several mails can be assigned to the same record at once.

Posted exactly as Odoo would have done
The original e-mail is processed again through Odoo's own mail gateway for the chosen record: the sender is the author, the attachments are on the message, a new lead or ticket gets its fields from the mail. The original Message-Id is kept, so the customer's next reply lands on the same record by itself.

Move any message to the right record
An e-mail landed on the wrong customer or the wrong order? Open the message menu in the chatter and choose Move to another record. Its attachments go with it, a note with a link stays on the original record, and replies to that e-mail follow to the new record.
Moving needs write access on both records; notifications, field change logs and Discuss channel messages stay where they are.

All messages in one searchable list
Mail Routing › Messages lists every e-mail, note and comment of the records you can read. Search the content, subject, author or document type, filter e-mails or notes or messages with attachments, group by document type, author or date, and move a selection to another record from the Actions menu.

How it works
Install the module: both options (keep unassigned mail, keep catchall mail) are on. They are in Settings › General Settings › Discuss.
Give your team the Mail Routing / User access right (the administrator has it).
Open Mail Routing › Unassigned Mail and assign what came in; move misplaced messages from any chatter.
Compatibility
| Versions | Odoo 17, 18, 19, 20 |
| Editions | Community and Enterprise |
| Hosting | Odoo.sh and on-premise (Python module) |
| Requires | Discuss (mail) only; leads, tickets, tasks and applicants when CRM, Helpdesk, Project or Recruitment are installed |
| Languages | English, Spanish, Romanian, Dutch |
Good to know
Real bounces, replies, aliases and the default model of your incoming mail servers keep working as before: only the mails Odoo would lose or bounce from the catchall are kept. Each option can be turned off in the settings.
Not done, with a clear message: moving Discuss channel messages, notifications or field change logs; assigning a mail twice or a mail already in a chatter; creating a contact for a sender who already is one; moving a message to the record it is on.
Explore our other apps
More modules by Aerya IT Solutions for Odoo 17, built to work together.
Questions or a custom quote?
Write to info@aerya.ro for questions about the module, its installation or custom development.
Developed in the European Union by Aerya IT Solutions, Odoo implementation and development. aerya.net
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 1048 |
| Technical Name |
aerya_mail_routing |
| License | OPL-1 |
| Website | https://aerya.net |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module