-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InboundEmail mime parser fix #7922
InboundEmail mime parser fix #7922
Conversation
…nstead of real char (e.g. à = =C3=A0; è = =C3=A8)
Codecov Report
@@ Coverage Diff @@
## hotfix-7.10.x #7922 +/- ##
=================================================
+ Coverage 7.27% 7.29% +0.01%
=================================================
Files 3700 3701 +1
Lines 386188 386105 -83
=================================================
+ Hits 28106 28154 +48
+ Misses 358082 357951 -131 |
Looks good, Assessed 👍 |
cc4bc11
to
13824a3
Compare
…encoding # Conflicts: # composer.lock
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to be tested, but a few points to looks at
This change allows us to detect the header type of inbound emails and prevents html being cleaned when the type is "text/plain".
This change populated the email->description field when the type of inbound email is plaintext.
retested and it still not populating the description field when I import an email (e.g create a case import) looks like you update it only on returnNonImportedEmail and not returnImportedEmail |
…encoding # Conflicts: # composer.json # composer.lock
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Reassessed and LGTM 👍 |
Raised issues have been addressed and PR re code-reviewed + assessed.
Description
Fixes an issue with the email body encoding and broken multipart/alternative emails. This PR also starts to refactor InboundEmail.php to use zbateson/mail-mime-parser.
This should, in theory, reduce a large amount of the email issues and regressions we receive in relation to improper email parsing while also reducing the overall complexity of inbound email handling in SuiteCRM.
Motivation and Context
Issue reference: #7880
How To Test This
This will require full testing of the email module. A few key areas I would recommend testing is the inline images functionality, attachments and HTML styling. This should be consistent across unimported and imported emails.
Types of changes
Final checklist