Skip to content

RFC2047-encoded headers with spaces look bad #424

@yzzyx

Description

@yzzyx

NOTE!
RFC2047 specifically says that it's forbidden to include spaces in encoded headers,
but there seems to be all too many broken MUA's out there.

Example:
Subject: =?ISO-8859-1?Q?PUNKDISTRO mailorder news 24.04.2015 / PISSE LP pr?=
=?ISO-8859-1?Q?e-order?=

In this example, the first part will not get decoded, only the second part, because of the included spaces. Other mua's (i.e. thunderbird) gracefully handle this and assumes (correctly) that the spaces should have been encoded.

(There's also a second issue here, with multi-line subjects, that means that this will be displayed as
=?ISO-8859-1?Q?PUNKDISTRO mailorder news 24.04.2015 / PISSE LP pr?= e-order - with a space between the two parts, when there should have been no space, but that's another issue)

So - should I create a pull request for this? It's annoying, so I'll at least patch my own fork, but I think others would benefit from it as well, even though it doesn't follow the RFC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions