mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-14 10:34:05 +00:00
22 lines
317 B
Go
22 lines
317 B
Go
|
// +build go1.5
|
||
|
|
||
|
package gomail
|
||
|
|
||
|
import (
|
||
|
"mime"
|
||
|
"mime/quotedprintable"
|
||
|
"strings"
|
||
|
)
|
||
|
|
||
|
var newQPWriter = quotedprintable.NewWriter
|
||
|
|
||
|
type mimeEncoder struct {
|
||
|
mime.WordEncoder
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
bEncoding = mimeEncoder{mime.BEncoding}
|
||
|
qEncoding = mimeEncoder{mime.QEncoding}
|
||
|
lastIndexByte = strings.LastIndexByte
|
||
|
)
|