SuiteCRM icon indicating copy to clipboard operation
SuiteCRM copied to clipboard

Fix #9772 - Importing text emails with attachments

Open ojs87 opened this issue 2 years ago • 5 comments

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

  1. Set up an inbound group email account.
  2. Send an email to this account in plain text format, with an attachment.
  3. Run the "Check Inbound Mailboxes" scheduled task.
  4. 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.

ojs87 avatar Sep 19 '22 08:09 ojs87

https://github.com/salesagility/SuiteCRM/issues/8505 - Found an additional issue to link to this PR

ojs87 avatar Dec 22 '22 16:12 ojs87

Can also confirm that it fixes the issue which is still present in SuiteCRM 8.5.0.

MatthewHana avatar Jan 30 '24 01:01 MatthewHana

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

SuiteBot avatar May 21 '24 08:05 SuiteBot

This pull request has been mentioned on SuiteCRM. There might be relevant details there:

https://community.suitecrm.com/t/email-body-blank/92704/12

SuiteBot avatar May 21 '24 08:05 SuiteBot