When MimeMail is used to parse incoming mail via mimemail_incoming the parser breaks on certain e-mails.

If the e-mail has attachments, the encoded attachment text (/9j/4AAQSkZJ...) is included in the html/plain parts of the resulting array. This seems to happen when the e-mail has multiple boundaries e.g.

Content-Type: multipart/mixed; boundary=FOO
&
Content-Type: multipart/alternative; boundary=BAR

The mime parts should be being parsed on the alternative boundary.

Comments

sgabe’s picture

Title: Bad parsing of e-mail's with multiple boundaries » Bad parsing of incoming e-mail's with multiple boundaries
Version: 7.x-1.0-beta1 » 7.x-1.x-dev
Status: Needs review » Active

Changing status since there is nothing to review. At least we know that somebody is actually using this feature.

Aldus’s picture

I have the same problem.
Expecially happens when an user replies from Hotmail or Yahoo using an attachment: everything is mixed inside the text.
Any chance to fix the parsing?

TR’s picture

Status: Active » Postponed (maintainer needs more info)

If you're having this problem please post the full text source, including headers, of an incoming email that is parsed incorrectly.

TR’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No information provided about how to reproduce.