Can anyone help to explain about the parameters info given from imap_fetchstructure.. ??
I have this...
$struct=imap_fetch_structure($this->stream,$this->msg_uid, FT_UID);
Which gives me the structure of the message...
The structure comes out as
type 1
encoding 0
subtype MIXED
description
id
lines
bytes
disposition
ifdparameters 0
dparameters
dparameters=>filename
dparameters=>value
parameters 0
parts 25
OK - all parts are attachments...
So we need to look in the parameters Object to find the info to "see" the attached files...
So $struct->parts[1]->parameters gives OBJECT
Each object is made up of an Attribute and a value..
So $struct->parts[1]->parameters->attribute or $struct->parts[1]->parameters->value should give something - but they dont...
What am I missing ???
Do I have to refer to each part of the parameter as parameter[$x] ?? (I have tried but it doesn't seem to work....)
Any help / ideas ??
Thanks,