Здравствуйте уважаемые коллеги, долгое время работает модуль по приему писем, но попался один клиент, в письмах которого функция imap_fetchstructure не видит раздел с вложениями, причем, если я перешлю через майлру себе это письмо, разделы есть, вложения определяются. Подскажите пожалуйста кто встречался, куда копать? Версия PHP 5.6.36. --- Добавлено --- Содержимое проблемного письма с вырезанными заголовками и содержимом Код (Text): Content-Type: multipart/mixed; boundary="=_mixed 0032BCEA43258772_=" --=_mixed 0032BCEA43258772_= Content-Type: multipart/related; boundary="=_related 0032BCEA43258772_=" --=_related 0032BCEA43258772_= Content-Type: multipart/alternative; boundary="=_alternative 0032BCEA43258772_=" --=_alternative 0032BCEA43258772_= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 содержимое раздела --=_alternative 0032BCEA43258772_= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: base64 содержимое раздела --=_alternative 0032BCEA43258772_=-- --=_related 0032BCEA43258772_= Content-Type: image/png Content-ID: <_4_0AD3C8B00AD3C4CC0032BCEA43258772> Content-Transfer-Encoding: base64 содержимое раздела --=_related 0032BCEA43258772_= Content-Type: image/png Content-ID: <_4_0AD3DC380AD3D8540032BCEA43258772> Content-Transfer-Encoding: base64 содержимое раздела --=_related 0032BCEA43258772_= Content-Type: image/png Content-ID: <_4_0AD3E2240AD3DE400032BCEA43258772> Content-Transfer-Encoding: base64 содержимое раздела --=_related 0032BCEA43258772_= Content-Type: image/png Content-ID: <_4_0AD3E8100AD3E42C0032BCEA43258772> Content-Transfer-Encoding: base64 содержимое раздела --=_related 0032BCEA43258772_= Content-Type: image/gif Content-ID: <_1_0AD3FF900AD3FA9C0032BCEA43258772> Content-Transfer-Encoding: base64 содержимое раздела --=_related 0032BCEA43258772_= Content-Type: image/png Content-ID: <_4_0E2F05AC0E2F019C0032BCEA43258772> Content-Transfer-Encoding: base64 содержимое раздела --=_related 0032BCEA43258772_=-- --=_mixed 0032BCEA43258772_= Content-Type: application/octet-stream; name="ФАЙЛ.pdf" Content-Disposition: attachment; filename="ФАЙЛ.pdf" Content-Transfer-Encoding: base64 СОДЕРЖИМОЕ ФАЙЛА PDF --=_mixed 0032BCEA43258772_=-- --- Добавлено --- Разделы, найденные imap_fetchstructure: Код (Text): stdClass Object ( [type] => 1 [encoding] => 0 [ifsubtype] => 1 [subtype] => MIXED [ifdescription] => 0 [ifid] => 0 [ifdisposition] => 0 [ifdparameters] => 0 [ifparameters] => 0 [parameters] => stdClass Object () [parts] => Array ( [0] => stdClass Object ( [type] => 1 [encoding] => 0 [ifsubtype] => 1 [subtype] => _4_0AD3DC380AD3D8540032BCEA43258772 [ifdescription] => 0 [ifid] => 0 [ifdisposition] => 0 [ifdparameters] => 0 [ifparameters] => 0 [parameters] => stdClass Object () [parts] => Array( [0] => stdClass Object ( [type] => 1 [encoding] => 0 [ifsubtype] => 1 [subtype] => ALTERNATIVE [ifdescription] => 0 [ifid] => 0 [ifdisposition] => 0 [ifdparameters] => 0 [ifparameters] => 1 [parameters] => Array( [0] => stdClass Object ( [attribute] => boundary [value] => UNKNOWN ) ) [parts] => Array( [0] => stdClass Object ( [type] => 0 [encoding] => 3 [ifsubtype] => 1 [subtype] => PLAIN [ifdescription] => 0 [ifid] => 0 [bytes] => 1312 [ifdisposition] => 0 [ifdparameters] => 0 [ifparameters] => 1 [parameters] => Array ( [0] => stdClass Object ( [attribute] => charset [value] => utf-8 ) ) ) [1] => stdClass Object( [type] => 0 [encoding] => 3 [ifsubtype] => 1 [subtype] => HTML [ifdescription] => 0 [ifid] => 0 [bytes] => 8514 [ifdisposition] => 0 [ifdparameters] => 0 [ifparameters] => 1 [parameters] => Array ( [0] => stdClass Object ( [attribute] => charset [value] => utf-8 ) ) ) ) ) [1] => stdClass Object ( [type] => 5 [encoding] => 6 [ifsubtype] => 1 [subtype] => PNG [ifdescription] => 1 [description] => image [ifid] => 0 [ifdisposition] => 0 [ifdparameters] => 0 [ifparameters] => 1 [parameters] => Array( [0] => stdClass Object( [attribute] => UNKNOWN [value] => _4_0AD3C8B00AD3C4CC0032BCEA43258772 ) [1] => stdClass Object ( [attribute] => UNKNOWN [value] => base64 ) [2] => stdClass Object( [attribute] => UNKNOWN [value] => UNKNOWN ) [3] => stdClass Object ( [attribute] => UNKNOWN [value] => UNKNOWN ) [4] => stdClass Object ( [attribute] => UNKNOWN [value] => UNKNOWN ) [5] => stdClass Object( [attribute] => UNKNOWN [value] => UNKNOWN ) ) ) ) ) ) )