php-imap
php-imap copied to clipboard
I received an email with multiple PART_BREAK but not an attachment
Describe the bug
This error occurs with some of the emails I received as shown

Used config I using the package default config.
Code to Reproduce The troubling code section which produces the reported bug.
echo $messages->getHTMLBody();
Expected behavior How can we handle this problem without being misunderstood?
Screenshots

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
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,
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
There is still the problem when I receive the email with the following attachment
But in the attachment there is no this file

the parts of the email do not recognize the html and attach to each other. it assigns all content to "text"
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!