Skip to content

fix: inner mime type quoted-printable#50

Open
mgoeppe wants to merge 1 commit into
DusanKasan:masterfrom
mgoeppe:fix-quoted-printable
Open

fix: inner mime type quoted-printable#50
mgoeppe wants to merge 1 commit into
DusanKasan:masterfrom
mgoeppe:fix-quoted-printable

Conversation

@mgoeppe
Copy link
Copy Markdown

@mgoeppe mgoeppe commented Apr 23, 2026

  • multipart.Reader.NextPart() hides the Content-Transfer encoding. Therefor I switched to NextRawPart() and needed to add the decoding to the decodeContent(..) func.
  • I also could have changed the detection of embedded files, sticked to NextPart() and used the mime decoding of multipart itself. I decided against that approach in order to stick close to your implementation.

* [multipart.Reader.NextPart()](https://pkg.go.dev/mime/multipart#Reader.NextPart) hides the Content-Transfer encoding. Therefor I switched to `NextRawPart()` and needed to add the decoding to the `decodeContent(..)` func.
* I also could have changed the detection of embedded files, sticked to `NextPart()` and used the mime decoding of multipart itself. I decided against that approach in order to stick close to your implementation.
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