Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process root element of embedded emails #201

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

klammbueddel
Copy link

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

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 tedious#188, tedious#43
lucasaba added a commit to lucasaba/php-pec that referenced this pull request Dec 13, 2017
Tutte le pec sono mail dentro mail. Quindi è fondamentale una
gestione corretta dei vari sotto-insiemi.

La soluzione è stata già proposta (tedious/Fetch#201)
ma il merge non è stato ancora fatto.
@WilRyan
Copy link

WilRyan commented Nov 23, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

getAttachments() save the file with 0 bytes size
2 participants