So lets boil it down either further...
<?php
ini_set('display_errors','1');
imap_timeout(IMAP_OPENTIMEOUT,15);
$mbox = imap_open("{imap.domain.tld:143/novalidate-cert}INBOX.ATTACHMENTTEST", "user@domain.tld", "password") or die();
$message_count = imap_num_msg($mbox);
if($message_count == 0)
{
exit();
}
for ($msgno = 1; $msgno <= $message_count; $msgno++)
{
echo '<pre>';
print_r(imap_fetchstructure($mbox, $msgno));
}
?>
That returns:
stdClass Object
(
[type] => 1
[encoding] => 0
[ifsubtype] => 1
[subtype] => REPORT
[ifdescription] => 0
[ifid] => 0
[ifdisposition] => 0
[ifdparameters] => 0
[ifparameters] => 1
[parameters] => Array
(
[0] => stdClass Object
(
[attribute] => report-type
[value] => feedback-report
)
[1] => stdClass Object
(
[attribute] => boundary
[value] => boundary-1138-29572-2659438-6122
)
)
[parts] => Array
(
[0] => stdClass Object
(
[type] => 0
[encoding] => 0
[ifsubtype] => 1
[subtype] => PLAIN
[ifdescription] => 0
[ifid] => 0
[lines] => 11
[bytes] => 569
[ifdisposition] => 0
[ifdparameters] => 0
[ifparameters] => 1
[parameters] => Array
(
[0] => stdClass Object
(
[attribute] => charset
[value] => us-ascii
)
)
)
[1] => stdClass Object
(
[type] => 2
[encoding] => 1
[ifsubtype] => 1
[subtype] => FEEDBACK-REPORT
[ifdescription] => 0
[ifid] => 0
[bytes] => 235
[ifdisposition] => 1
[disposition] => inline
[ifdparameters] => 0
[ifparameters] => 0
[parameters] => stdClass Object
(
)
)
[2] => stdClass Object
(
[type] => 2
[encoding] => 1
[ifsubtype] => 1
[subtype] => RFC822
[ifdescription] => 0
[ifid] => 0
[lines] => 55
[bytes] => 2302
[ifdisposition] => 1
[disposition] => inline
[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] => ----------=_1279767188-7874-7337
)
)
[parts] => Array
(
[0] => stdClass Object
(
[type] => 0
[encoding] => 0
[ifsubtype] => 1
[subtype] => HTML
[ifdescription] => 0
[ifid] => 0
[lines] => 23
[bytes] => 1020
[ifdisposition] => 1
[disposition] => inline
[ifdparameters] => 0
[ifparameters] => 1
[parameters] => Array
(
[0] => stdClass Object
(
[attribute] => charset
[value] => utf-8
)
)
)
)
)
)
)
)
)
now the email it's ran against is an AOL scomp report... so theres a ATTXXXXX.dat and the original email reported attached... yet, neither of these are showing their faces... in all the examples ive seen, at the very least, the attachment name should be visible in the stdClass output...
What the heck