Skip to content

Email parsing failure for malformed Content-Disposition header#196

Open
rayhankinan wants to merge 1 commit into
mnako:mainfrom
Match-Made:MAT-4149/fix/malformed-content-disposition
Open

Email parsing failure for malformed Content-Disposition header#196
rayhankinan wants to merge 1 commit into
mnako:mainfrom
Match-Made:MAT-4149/fix/malformed-content-disposition

Conversation

@rayhankinan

@rayhankinan rayhankinan commented May 4, 2026

Copy link
Copy Markdown

Describe your changes

Add support for certain incoming emails due to invalid header format: Content-Disposition: attachments.

This is done by altering ep.parsePart(...) function by making the ContentType, ContentTransferEncoding, and ContentDisposition customisable, similar to what have been done before to the ParseHeaders function.

Let me know if there's some additional changes needed, like documentation in README.md

@rayhankinan
rayhankinan requested a review from mnako as a code owner May 4, 2026 07:07
@rayhankinan rayhankinan changed the title [MAT-4149][RELAY] Email parsing failure for malformed Content-Disposition header Email parsing failure for malformed Content-Disposition header May 4, 2026
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.

1 participant