We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cba00f commit 0742dffCopy full SHA for 0742dff
writeto.go
@@ -3,7 +3,6 @@ package mail
3
import (
4
"encoding/base64"
5
"errors"
6
- "fmt"
7
"io"
8
"mime"
9
"mime/multipart"
@@ -55,13 +54,7 @@ func (w *messageWriter) writeMessage(m *Message) (int64, error) {
55
54
w.writeHeaders(m.header)
56
57
if m.isSetProtocol() && !m.isSecuredMIME() { // fetch the enveloped case
58
- mime := fmt.Sprintf("encrypted;\r\n protocol=\"%s\"", m.protocol)
59
- w.openMultipart(mime, m.boundary)
60
-
61
- w.writePart(m.controlPart, m.charset)
62
w.writePart(m.protectedPart, m.charset)
63
64
- w.closeMultipart()
65
return w.n, w.err
66
}
67
0 commit comments