Hi All,
I have built a basic webmail system capable of reading MIME e-mails, however my one stumbling block is reading a message sent from the Macintosh version of Outlook Express where the message has more than one file attached to it and the content-type is multipart/mixed.
The problems seems to stem from imap_fetchstructure() not being able to correvtly identify the number of parts contained within the message. The result is that the body of the message can be successfully extracted and displayed however the attachments are not.
Looking at the source of such a message it appears that an extra instance of the boundary occurs before the parts containing the attached files are declared, the only difference between this and other boundarys being that it is suffixed with "--". imap_fetchstructure() seems to ingore everything after that point in the message.
Has anyone else encountered this problem and if so have you been able to work around it? I have tested a series of other pre-built webmail systems and none of them seem to be able to correctly deal with such messages.
Thanks.