php-imap
php-imap copied to clipboard
Sub-boundaries inside of parts
Describe the bug
iCloud Webmail uses such weird thing as sub-bundaries inside of part. And it looks like the library is not able to handle such things for now.
Here is an example:
...
Content-Type: multipart/alternative; boundary=Apple-Webmail-42--f192ad65-3385-4ac2-88a9-fcac9ffa66ff
MIME-Version: 1.0
--Apple-Webmail-42--f192ad65-3385-4ac2-88a9-fcac9ffa66ff
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8;
format=flowed
This is test content.
--Apple-Webmail-42--f192ad65-3385-4ac2-88a9-fcac9ffa66ff
Content-Type: multipart/related;
type="text/html";
boundary=Apple-Webmail-86--f192ad65-3385-4ac2-88a9-fcac9ffa66ff
--Apple-Webmail-86--f192ad65-3385-4ac2-88a9-fcac9ffa66ff
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8;
<html><body><div><div>This is test content.<br></div></div></body></html>
--Apple-Webmail-86--f192ad65-3385-4ac2-88a9-fcac9ffa66ff--
--Apple-Webmail-42--f192ad65-3385-4ac2-88a9-fcac9ffa66ff--