Skip to main content
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:

  • Receiving channels: the email addresses or phone numbers where the messages arrive. Each channel is a module (for example mail_message_import_email or mail_message_import_whatsapp).

  • Senders and their authorized addresses: the phones and email addresses allowed to send messages on behalf of each sender. A message from any other address waits in Unknown senders until a person assigns it to a sender, and the address can be authorized at the same time.

  • Conversations: the consecutive messages of a sender are grouped and processed together once the sender has been silent for some minutes, so that clarifications and corrections are read in context. The conversations are queued, retried when they fail and reported as incidents when they keep failing.

  • A panel with a card per receiving channel: unknown senders, incidents, conversations with errors or being processed, and the messages of the last days.

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.

Metadata

Release files for odoo-addon-mail-message-import 18.0.1.0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-mail-message-import 18.0.1.0.0.2
File Interpreter ABI Platform Actions
odoo_addon_mail_message_import-18.0.1.0.0.2-py3-none-any.whl Python 3 none any Details for odoo_addon_mail_message_import-18.0.1.0.0.2-py3-none-any.whl

Release files / odoo_addon_mail_message_import-18.0.1.0.0.2-py3-none-any.whl

Download URL odoo_addon_mail_message_import-18.0.1.0.0.2-py3-none-any.whl
Size 108.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ce34690edfda92d769156edabf5dbc4abd0779ea18f645f6f9dd7a9a76eb836
BLAKE2b-256 checksum
How to use checksums
c7e42396bc76c42645d6f4a626f86300e95f86bafea5f3c3bc7f565b6b1560c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for odoo-addon-mail-message-import 18.0.1.0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page