ID: 28904 Updated by: [EMAIL PROTECTED] Reported By: jolyon at mways dot co dot uk -Status: Open +Status: Feedback Bug Type: IMAP related Operating System: FreeBSD 4.7 PHP Version: 4.3.6 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: ------------------------------------------------------------------------ [2004-06-24 00:35:04] jolyon at mways dot co dot uk Description: ------------ Our ISP upgraded from c-client 2002 to c-client 2004. Since then PHP has operated mostly correctly, but a call to imap_fetchstructure() now returns incomplete data. Data on message attachments is lost now. Reproduce code: --------------- fetch structure of message with imap_fetchstructure() var_dump structure Expected result: ---------------- The same script running against the same message from the same mailserver as below, but running from a working system: object(stdClass)(12) { ["type"]=> int(1) ["encoding"]=> int(0) ["ifsubtype"]=> int(1) ["subtype"]=> string(5) "MIXED" ["ifdescription"]=> int(0) ["ifid"]=> int(0) ["bytes"]=> int(8099) ["ifdisposition"]=> int(0) ["ifdparameters"]=> int(0) ["ifparameters"]=> int(1) ["parameters"]=> array(1) { [0]=> object(stdClass)(2) { ["attribute"]=> string(8) "BOUNDARY" ["value"]=> string(46) "-MOQ10879031851708b4bc5063293a737936ca57809981" } } ["parts"]=> array(2) { [0]=> object(stdClass)(12) { ["type"]=> int(0) ["encoding"]=> int(1) ["ifsubtype"]=> int(1) ["subtype"]=> string(5) "PLAIN" ["ifdescription"]=> int(0) ["ifid"]=> int(0) ["lines"]=> int(6) ["bytes"]=> int(140) ["ifdisposition"]=> int(0) ["ifdparameters"]=> int(0) ["ifparameters"]=> int(1) ["parameters"]=> array(1) { [0]=> object(stdClass)(2) { ["attribute"]=> string(7) "CHARSET" ["value"]=> string(10) "ISO-8859-1" } } } [1]=> object(stdClass)(13) { ["type"]=> int(5) ["encoding"]=> int(3) ["ifsubtype"]=> int(1) ["subtype"]=> string(5) "PJPEG" ["ifdescription"]=> int(0) ["ifid"]=> int(0) ["bytes"]=> int(7550) ["ifdisposition"]=> int(1) ["disposition"]=> string(10) "ATTACHMENT" ["ifdparameters"]=> int(1) ["dparameters"]=> array(1) { [0]=> object(stdClass)(2) { ["attribute"]=> string(8) "FILENAME" ["value"]=> string(8) "curl.jpg" } } ["ifparameters"]=> int(1) ["parameters"]=> array(1) { [0]=> object(stdClass)(2) { ["attribute"]=> string(4) "NAME" ["value"]=> string(8) "curl.jpg" } } } } } Actual result: -------------- This message contains an attachment, although you wouldn't think so from this var_dump object(stdClass)(12) { ["type"]=> int(1) ["encoding"]=> int(0) ["ifsubtype"]=> int(1) ["subtype"]=> string(5) "MIXED" ["ifdescription"]=> int(0) ["ifid"]=> int(0) ["bytes"]=> int(8099) ["ifdisposition"]=> int(0) ["ifdparameters"]=> int(0) ["ifparameters"]=> int(1) ["parameters"]=> array(1) { [0]=> object(stdClass)(2) { ["attribute"]=> string(8) "BOUNDARY" ["value"]=> string(46) "-MOQ10879031851708b4bc5063293a737936ca57809981" } } ["parts"]=> array(1) { [0]=> object(stdClass)(12) { ["type"]=> int(0) ["encoding"]=> int(1) ["ifsubtype"]=> int(1) ["subtype"]=> string(5) "PLAIN" ["ifdescription"]=> int(0) ["ifid"]=> int(0) ["lines"]=> int(6) ["bytes"]=> int(140) ["ifdisposition"]=> int(0) ["ifdparameters"]=> int(0) ["ifparameters"]=> int(1) ["parameters"]=> array(1) { [0]=> object(stdClass)(2) { ["attribute"]=> string(7) "CHARSET" ["value"]=> string(10) "ISO-8859-1" } } } } } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28904&edit=1