The additional multipart start/stop are not needed here

This commit is contained in:
Winni Neessen 2023-01-31 21:54:32 +01:00
parent d33f0e8004
commit fe28247f9b
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

View file

@ -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()
}