php-imap icon indicating copy to clipboard operation
php-imap copied to clipboard

I received an email with multiple PART_BREAK but not an attachment

Open vigstudio opened this issue 2 years ago • 5 comments

Describe the bug This error occurs with some of the emails I received as shown image

Used config I using the package default config.

Code to Reproduce The troubling code section which produces the reported bug.

echo $messages->getHTMLBody();
image

Expected behavior How can we handle this problem without being misunderstood?

Screenshots image image

Desktop / Server (please complete the following information):

  • OS: MacOS 13
  • PHP: 8.1
  • Version 4.0.0
  • Provider Native

Additional context I only use email content download

vigstudio avatar Dec 05 '22 01:12 vigstudio

Hi @vigstudio , many thanks for your report.

Please update to v5.1 and give it another try. If you are still using an older version below v5.0, please read the breaking changes leading up to v5.1 before upgrading.

If it is still failing, please provide an anonymized version of this email in order to replicate the issue.

Best regards,

Webklex avatar Mar 16 '23 00:03 Webklex

Hi @vigstudio , many thanks for your report.

Please update to v5.1 and give it another try. If you are still using an older version below v5.0, please read the breaking changes leading up to v5.1 before upgrading.

If it is still failing, please provide an anonymized version of this email in order to replicate the issue.

Best regards,

Thank. I think it worked

vigstudio avatar Mar 21 '23 04:03 vigstudio

There is still the problem when I receive the email with the following attachment image But in the attachment there is no this file image

vigstudio avatar Apr 05 '23 09:04 vigstudio

image the parts of the email do not recognize the html and attach to each other. it assigns all content to "text" image image

vigstudio avatar May 08 '23 08:05 vigstudio

Hi @vigstudio , many thanks for the followup. Does the issue still persist in the latest release? If it does, please share an anonymized version of it or even better a test case. This way I'm able to recreate the issue and take a look at it.

Once again, thanks for taking the time and effort to make this library better! If you have any more questions or need further assistance, feel free to let me know.

Best regards and happy coding!

Webklex avatar Jun 23 '23 21:06 Webklex