Odoo Community Association

Mail Message Import

Beta License: AGPL-3 OCA/social Translate me on Weblate Try me on Runboat

This module gives Odoo an inbox for the messages that the company receives by several channels (email, WhatsApp…), whatever the channel:

The module does not decide what a conversation means: other modules process them (for example to turn the documents received into orders). Without one, the conversations are just closed once grouped.

Table of contents

Configuration

  1. Give the group Message Import Manager to the users that manage the application (the administrator has it after the installation).
  2. Install the module of a channel (email, WhatsApp…) and create its receiving channel in Message Import > Configuration > Receiving channels.
  3. In Message Import > Configuration > Senders, create the senders and the phones or email addresses they send from, in the tab Phones and email addresses.
  4. In Message Import > Configuration > Settings, set the minutes without new messages before a conversation is processed, and the attempts before it is left in error.

Forwarded Outlook emails (.msg) are unpacked when the Python library extract-msg is installed; standard emails (.eml) need nothing else.

Usage

  • Message Import > Panel shows a card per receiving channel with what is left to review.
  • Message Import > To review > Unknown senders lists the messages of addresses that are not authorized. Select them and press Assign to a sender: the address can be authorized for the next messages, and the messages are processed as a conversation of the sender.
  • Message Import > Received > Conversations lists the conversations. A conversation waiting for more messages can be processed at once with Process now, and one in error can be processed again with Retry.
  • Message Import > To review > Incidents lists what could not be done, for example a conversation that failed every attempt. Retry processes it again once the cause is solved.

For developers, a channel module:

  • adds its value to mail.message.import.channel.channel_type and tells the state of its channels in _channel_state();
  • tells how its addresses are compared in mail.message.import.address._normalize_address();
  • hands over each message with mail.message.import.message._receive_message().

A module that processes the conversations overrides mail.message.import.conversation._process_messages(), which gets the messages in chronological order, with their files downloaded and their forwarded emails unpacked. Conversations are opened with SQL, not with create(): a module that adds fields to them initializes those fields in _on_open().

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Binhex

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

oliverg09

This module is part of the OCA/social project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.