I'm like a dog with a bone...
I've been working through my osTicket scripts and am replacing the IMAP C-Client functions with Zend\Mail functions. It's been arduous, but at least I've managed to get it to the point where it's not throwing 500 Internal Errors. 🙂
I need the structure of imap_fetchstructure now. I know what php.net says it is, but their explanation is incomplete. Here's what php.net says imap_fetchstreucture returns:
type: Primary body type
encoding: Body transfer encoding
ifsubtype: TRUE if there is a subtype string
subtype: MIME subtype
ifdescription: TRUE if there is a description string
description: Content description string
ifid: TRUE if there is an identification string
id: Identification string
lines: Number of lines
bytes: Number of bytes
ifdisposition: TRUE if there is a disposition string
disposition: Disposition string
ifdparameters: TRUE if the dparameters array exists
dparameters: An array of objects where each object has an "attribute" and a "value" property corresponding to the parameters on the Content-disposition MIME header.
ifparameters: TRUE if the parameters array exists
parameters: An array of objects where each object has an "attribute" and a "value" property.
parts: An array of objects identical in structure to the top-level object, each of which corresponds to a MIME body part.
I can reconstruct this using Zend\Mail... maybe create my own version of the function, but I need to know what's in the "dparameters" array, the "parameters" array, and the "parts" array.
Anyone?