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.

25 lines
445 B

  1. // +build !go1.5
  2. package gomail
  3. import "gopkg.in/alexcesaro/quotedprintable.v3"
  4. var newQPWriter = quotedprintable.NewWriter
  5. type mimeEncoder struct {
  6. quotedprintable.WordEncoder
  7. }
  8. var (
  9. bEncoding = mimeEncoder{quotedprintable.BEncoding}
  10. qEncoding = mimeEncoder{quotedprintable.QEncoding}
  11. lastIndexByte = func(s string, c byte) int {
  12. for i := len(s) - 1; i >= 0; i-- {
  13. if s[i] == c {
  14. return i
  15. }
  16. }
  17. return -1
  18. }
  19. )