2015-07-17 01:33:38 +08:00
|
|
|
// +build go1.5
|
|
|
|
|
|
|
|
package gomail
|
|
|
|
|
|
|
|
import (
|
|
|
|
"mime"
|
|
|
|
"mime/quotedprintable"
|
2016-03-17 06:42:32 +08:00
|
|
|
"strings"
|
2015-07-17 01:33:38 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
var newQPWriter = quotedprintable.NewWriter
|
|
|
|
|
|
|
|
type mimeEncoder struct {
|
|
|
|
mime.WordEncoder
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
2016-03-17 06:42:32 +08:00
|
|
|
bEncoding = mimeEncoder{mime.BEncoding}
|
|
|
|
qEncoding = mimeEncoder{mime.QEncoding}
|
|
|
|
lastIndexByte = strings.LastIndexByte
|
2015-07-17 01:33:38 +08:00
|
|
|
)
|