SuiteCRM
SuiteCRM copied to clipboard
Fix #9772 - Importing text emails with attachments
Description
For issue https://github.com/salesagility/SuiteCRM/issues/9772.
When an email is imported with a multipart/**** content type, for example when it has an attachment, the email parser will look for an html contentType for the body of the email. Sometimes an email only has a text/plain contentType for the body. In these cases, the imported body will be empty.
Motivation and Context
Cases created via the importer are sometimes missing descriptions.
How To Test This
- Set up an inbound group email account.
- Send an email to this account in plain text format, with an attachment.
- Run the "Check Inbound Mailboxes" scheduled task.
- Check the imported email from step 2, it should have no body stored in the database.
Types of changes
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Final checklist
- [x] My code follows the code style of this project found here.
- [ ] My change requires a change to the documentation.
- [x] I have read the How to Contribute guidelines.
https://github.com/salesagility/SuiteCRM/issues/8505 - Found an additional issue to link to this PR
Can also confirm that it fixes the issue which is still present in SuiteCRM 8.5.0.
This pull request has been mentioned on SuiteCRM. There might be relevant details there:
https://community.suitecrm.com/t/email-can-not-view-bounce-detail/91824/14
This pull request has been mentioned on SuiteCRM. There might be relevant details there:
https://community.suitecrm.com/t/email-body-blank/92704/12