Repository navigation
Conversation
divad1196
force-pushed
the
18.0-add-mail_incoming_malformed_permissive
branch
2 times, most recently
from
November 26, 2026 13:36
06dcdfd to
6864289
Compare
TDu
reviewed
Nov 27, 2026
TDu
left a comment
Member
There was a problem hiding this comment.
Should it also handle this part of the flow ?
https://github.com/odoo/odoo/blob/18.0/addons/mail/models/mail_thread.py#L1642-L1654
simahawk
reviewed
Nov 27, 2026
divad1196
force-pushed
the
18.0-add-mail_incoming_malformed_permissive
branch
2 times, most recently
from
November 27, 2026 14:53
98fa178 to
6d619fe
Compare
Author
I didn't think of multipart (and just learnt exactly how this works). |
divad1196
force-pushed
the
18.0-add-mail_incoming_malformed_permissive
branch
2 times, most recently
from
November 27, 2026 15:41
6d0e318 to
499c4cc
Compare
…ming mails - keep every <html> received, not just the first one
Fix every html part, not just a mail made of a single html part.
divad1196
force-pushed
the
18.0-add-mail_incoming_malformed_permissive
branch
from
November 27, 2026 16:57
499c4cc to
89e56ca
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Some email clients can send non-standard or malformed emails.
For a business, it's critical that we can handle the emails.
The goal of this module is to handle non-standard cases the best we can.
Fix
Keep every
<html>tag received, not just the first one. ℹ️ This is only usefull if you havelibxml2 2.10or later