imap_fetchstructure issues with attachment in exchange 2010

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
susee001
Forum Newbie
Posts: 1
Joined: Tue Nov 02, 2010 10:03 am

imap_fetchstructure issues with attachment in exchange 2010

Post 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
(
)
)
Post Reply