Этот коммит содержится в:
enahum
2016-11-14 09:11:54 -03:00
коммит произвёл Christopher Speller
родитель 323ce8b203
Коммит baf1fb6fea
15 изменённых файлов: 27 добавлений и 56 удалений

Просмотреть файл

@@ -5,10 +5,10 @@ package utils
import (
"crypto/tls"
"encoding/base64"
"fmt"
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/model"
"mime"
"net"
"net/mail"
"net/smtp"
@@ -16,10 +16,7 @@ import (
)
func encodeRFC2047Word(s string) string {
// TODO: use `mime.BEncoding.Encode` instead when `go` >= 1.5
// return mime.BEncoding.Encode("utf-8", s)
dst := base64.StdEncoding.EncodeToString([]byte(s))
return "=?utf-8?b?" + dst + "?="
return mime.BEncoding.Encode("utf-8", s)
}
func connectToSMTPServer(config *model.Config) (net.Conn, *model.AppError) {