"----boundary..." is a part of the attachment
This was reproduced with the latest version 6.1.0
Describe the bug The attachment is saved with the wrong name, without file extension, and with "----boundary..." inside
Code to Reproduce To reproduce the problem please use this EML
Screenshots
I assume that the problem could be caused by incorrect parts detection when we have a nested 'boundary'. This is what we can see inside the Attachment
Additional context
The attachment name and the content
Thank you
Hello @Webklex, were you able to reproduce the problem?
Same issue as I just report in #582
PR in #455 and commit fad09ad altered Structure::parsePart so it only handles multipart blocks with more than one part, in a case of a single part it falls through and assumes it just a single text block
Hence your content is the actual part and your filename/name is set to be the generated hash as it could not find name headers as it did not actually returned a raw block.
Will try to validate the fix
@mrhewitt Still doesn't work for my case. But it works on https://github.com/inFreeRED/php-imap
One more issue with boundary
When at the end of the line there 2 spaces
Content-Type: multipart/mixed; boundary="--=_Next_Part_04_Jun_2025_12.10.44"
Hello @Webklex, do you have any updates on this issue? Please let me know if you have any questions. Thanks