Given the following mime type structure:
mulitpart
text
image
I have read all over the place that part 1.2 refers to the image, yet I have never gotten anything to work using that decimal method and I am totally clueless how that works.
$structure=imap_fetchstructure($mbox,$msg_no);
$structure->parts[1]; always refers to the image
$structure->parts[2]; always refers to the text
however.....
imap_fetchbody($mbox,$msg_no,1) gives me the text message.
imap_fetchbody($mbox,$msg_no,2) gives me the encrypted data for the image.
imap_fetchbody($mbox,$msg_no,"1.1") gives me nothing.
On top of that $structure->ifdisposition always returns a false regardless of what part I am refering to, even if Content-Typešisposition; is in the header or a mime header.
I think I am missing something important here, and I hope someone out there can throw me a bone.