From fe28247f9bda6896861268db7175ae847d874cc9 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Tue, 31 Jan 2023 21:54:32 +0100 Subject: [PATCH] The additional multipart start/stop are not needed here --- msgwriter.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/msgwriter.go b/msgwriter.go index 544aaa2..c0e4b88 100644 --- a/msgwriter.go +++ b/msgwriter.go @@ -108,7 +108,6 @@ func (mw *msgWriter) writeMsg(m *Msg) { mw.startMP(`signed; protocol="application/pgp-signature";`, m.boundary) } mw.writeString(DoubleNewLine) - mw.startMP("mixed", m.boundary) } for _, p := range m.parts { @@ -117,9 +116,6 @@ func (mw *msgWriter) writeMsg(m *Msg) { } } - if m.hasPGPType() { - mw.stopMP() - } if m.hasAlt() { mw.stopMP() }