Skip to content

mime/multipart: quoted-printable check is not quote enough #7139

@jmhodges

Description

@jmhodges
I've found emails that are Content-Type: multipart/alternative, but instead of putting
the Content-Transfer-Encoding: quoted-printable in each relevant part's MIME header
section, it puts it in the emails top-level MIME header section.

This makes the check in mime/multipart's newPart function[1] miss the fact that the
reader needs to be wrapped in quotedPrintableReader.

Either we could inherit the Content-Transfer-Encoding from the top-level header when
creating a new Part, or we can expose the quotedPrintableReader struct for users to fix
up.

[1] http://golang.org/src/pkg/mime/multipart/multipart.go#L98

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions