go-message icon indicating copy to clipboard operation
go-message copied to clipboard

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

Open maertsen opened this issue 5 months ago • 0 comments

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.

maertsen avatar Sep 02 '24 10:09 maertsen