Explorar el Código

Merge branch 'master' of github.com:Jinnrry/PMail

# Conflicts:
#	server/listen/pop3_server/action_test.go
jinnrry hace 1 año
padre
commit
54bfe12f2d
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      server/dto/parsemail/email.go

+ 2 - 0
server/dto/parsemail/email.go

@@ -383,6 +383,7 @@ func (e *Email) BuildBytes(ctx *context.Context, dkim bool) []byte {
 		log.WithContext(ctx).Fatal(err)
 	}
 	var th mail.InlineHeader
+	th.Header.Set("Content-Transfer-Encoding", "base64")
 	th.SetContentType("text/plain", map[string]string{
 		"charset": "UTF-8",
 	})
@@ -397,6 +398,7 @@ func (e *Email) BuildBytes(ctx *context.Context, dkim bool) []byte {
 	html.SetContentType("text/html", map[string]string{
 		"charset": "UTF-8",
 	})
+	html.Header.Set("Content-Transfer-Encoding", "base64")
 	w, err = tw.CreatePart(html)
 	if err != nil {
 		log.Fatal(err)