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

broken e-mail: space in unescaped filename param of Content-Disposition header #184

Open
maertsen opened this issue Sep 2, 2024 · 0 comments

Comments

@maertsen
Copy link

maertsen commented Sep 2, 2024

I came across a broken e-mail that has a space in the filename parameters of a Content-Disposition header, like this:
Content-Disposition: inline; filename=Concur _1_.png

Now, this is not valid per https://www.rfc-editor.org/rfc/rfc2183.html#section-2 and https://www.rfc-editor.org/rfc/rfc2045#section-5.1, no space is allowed unless the filename is quoted, which it was not.

I'm filing this issue merely to document how this breaks, not with the expectation that a simple fix is possible:

Thunderbird seems to be able to deal with this brokenness, I have not checked how they do this.

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

No branches or pull requests

1 participant