[18.0][ADD] mail_message_import #1966
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.45) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 406 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.359
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #1966"
general
weight: 0.35
edescalona
Description
New module that gives Odoo one inbox for the messages a company receives on any channel (email, WhatsApp...). Each channel will be its own module.
The module only receives, identifies and groups messages. It does not decide what a conversation means: other modules do that (for example, turning the documents received into sale or purchase orders). Without one of those modules, a conversation is simply closed once it has been grouped.
What it adds
- A message from any other address waits in Unknown senders.
- A user can assign it to a sender and authorize the address in the same step.
- Consecutive messages from a sender are grouped.
- They are processed together once the sender has been silent for a few minutes (configurable per company), so clarifications and corrections are read in context.
- They are queued and retried with backoff.
- When they keep failing, they are reported as incidents.
-
.emlattachments are unpacked.-
.msgattachments are unpacked too when the optionalextract-msglibrary is installed.Extension points
A channel module:
mail.message.import.channel.channel_type;_channel_state();mail.message.import.address._normalize_address();mail.message.import.message._receive_message().A processing module:
mail.message.import.conversation._process_messages(), which receives the messages in chronological order, with their files downloaded and forwarded emails unpacked;_expected_errors(),_failure_incident_type()andmail.message.import.incident._retry_types().Technical notes
mail.FOR UPDATE SKIP LOCKED, so several workers can run it safely.Follow-up PRs
-
mail_message_import_email: incoming mail servers as receiving channels. (#1960)-
mail_message_import_whatsapp:mail_gateway_whatsappgateways as receiving channels. (#1962)-
ai_message_import: processes the conversations withai_connection. (https://github.com/OCA/ai/pull/150)How to test
1. Install the module. The administrator gets the Message Import Manager group.
2. Go to Message Import > Configuration and check senders, authorized addresses and settings.
3. Messages only arrive through a channel module (see the follow-up PRs). Until then, the tests cover reception, sender identification, grouping, retries, incidents and the panel.
@BinhexTeam