tedious / Fetch

An IMAP library for PHP
http://www.tedivm.com
Other
503 stars 158 forks source link

Process root element of embedded emails #201

Open klammbueddel opened 7 years ago

klammbueddel commented 7 years ago

An email with an embedded email can have the following structure:

1: "text/plain" 2: "message/rfc822" 2: "multipart/mixed" 2.1: "text/plain" 2.2: "application/octet-stream" 2.3, "application/octet-stream"

Before this fix this structure was parsed as

1: "text/plain" 2: "message/rfc822" 2.1: "multipart/mixed" 2.1.1: "text/plain" 2.1.2: "application/octet-stream" 2.1.3, "application/octet-stream"

Hence, downloading attachments was not possible due to wrong part identifiers

resolves #188, #43

WilRyan commented 1 year ago

Hi @tedivm Any idea when this is getting merged. Resolved #229 which my colleague submitted

Seems to work well with attachment emails that have attachements