[SOLVED]Problem: imap_fetchstructure() doesn't get all parts
Posted: Wed Dec 29, 2004 4:25 am
Hi,
I'm using imap_fetchstructure() on both a localhost IMAP email account and an external one.
I've made a duplicate of the messages on the external account into my localhost account and I have generated a list of subjects alongside the number of the email to verify both are the same.
On the localhost account imap_fetchstructure() returns all messages as either multipart (but only one part included) or not multipart even if the external account shows them as multipart.
Example ::
External account on msg number 212
Also the parameters are missing. Is this the way I have configured my localhost mail server (MailTraq)?
Cheers
I'm using imap_fetchstructure() on both a localhost IMAP email account and an external one.
I've made a duplicate of the messages on the external account into my localhost account and I have generated a list of subjects alongside the number of the email to verify both are the same.
On the localhost account imap_fetchstructure() returns all messages as either multipart (but only one part included) or not multipart even if the external account shows them as multipart.
Example ::
External account on msg number 212
and the internal one on also on Msg 212stdClass 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] => 1102462256763.MimeBoundarY
)
)
[parts] => Array
(
[0] => stdClass Object
(
[type] => 0
[encoding] => 4
[ifsubtype] => 1
[subtype] => PLAIN
[ifdescription] => 0
[ifid] => 0
[lines] => 112
[bytes] => 4255
[ifdisposition] => 0
[ifdparameters] => 0
[ifparameters] => 1
[parameters] => Array
(
[0] => stdClass Object
(
[attribute] => charset
[value] => ISO-8859-1
)
)
)
[1] => stdClass Object
(
[type] => 0
[encoding] => 4
[ifsubtype] => 1
[subtype] => HTML
[ifdescription] => 0
[ifid] => 0
[lines] => 278
[bytes] => 14599
[ifdisposition] => 0
[ifdparameters] => 0
[ifparameters] => 1
[parameters] => Array
(
[0] => stdClass Object
(
[attribute] => charset
[value] => ISO-8859-1
)
)
)
)
)
As you can see both emails have the equal number of lines but the second part is missing in the localhost one and the type is MIXED not ALTERNATIVE.stdClass Object
(
[type] => 1
[encoding] => 0
[ifsubtype] => 1
[subtype] => MIXED
[ifdescription] => 0
[ifid] => 0
[ifdisposition] => 0
[ifdparameters] => 0
[ifparameters] => 0
[parameters] => Array
(
)
[parts] => Array
(
[0] => stdClass Object
(
[type] => 0
[encoding] => 4
[ifsubtype] => 1
[subtype] => PLAIN
[ifdescription] => 0
[ifid] => 0
[lines] => 112
[bytes] => 4257
[ifdisposition] => 0
[ifdparameters] => 0
[ifparameters] => 1
[parameters] => Array
(
[0] => stdClass Object
(
[attribute] => charset
[value] => ISO-8859-1
)
)
)
)
)
Also the parameters are missing. Is this the way I have configured my localhost mail server (MailTraq)?
Cheers