You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
317 B

  1. // +build go1.5
  2. package gomail
  3. import (
  4. "mime"
  5. "mime/quotedprintable"
  6. "strings"
  7. )
  8. var newQPWriter = quotedprintable.NewWriter
  9. type mimeEncoder struct {
  10. mime.WordEncoder
  11. }
  12. var (
  13. bEncoding = mimeEncoder{mime.BEncoding}
  14. qEncoding = mimeEncoder{mime.QEncoding}
  15. lastIndexByte = strings.LastIndexByte
  16. )