Page 1 of 1

imap_fetchstructure issues with attachment in exchange 2010

Posted: Tue Nov 02, 2010 10:35 am
by susee001
imap_fetchstructure is not returing information about attachments for certain e-mails after the mailbox is migrated to exchange 2010. Using IMAP protocol and was working fine until the migration from exchange 2007 to 2010. 99% of emails with attachments works fine, but few don't. I can replicate the issue when an attachment is sent from gmail accounts or xerox devices to exchange 2010. The output of imap_fetchstructure (message has no body, only attachment) looks like below, as you can see, parts is returning null. I have tested it using imap-2006e and imap-4.7b libraries with same issues. Any ideas how to resolve the issue?

stdClass Object
(
[type] => 1
[encoding] => 5
[ifsubtype] => 1
[subtype] => MIXED
[ifdescription] => 0
[ifid] => 0
[ifdisposition] => 0
[ifdparameters] => 0
[ifparameters] => 1
[parameters] => Array
(
[0] => stdClass Object
(
[attribute] => boundary
[value] => AHNKAKBLDCDIDAGCDHGDAAAKACAK
)
)
[parts] => Array
(
)
)