Versions in this module Expand all Collapse all v1 v1.0.1 Aug 1, 2016 Changes in this version + var AddressHeaders = []string + func ConvertToUTF8String(charset string, textBytes []byte) (string, error) + func DecodeHeader(input string) string + func DecodeToUTF8Base64Header(input string) string + func IsAttachment(header mail.Header) bool + func IsBinaryBody(mailMsg *mail.Message) bool + func IsMultipartMessage(mailMsg *mail.Message) bool + func IsPlain(header mail.Header, emptyContentTypeIsPlain bool) bool + func NewCharsetReader(charset string, input io.Reader) (io.Reader, error) + type Base64Cleaner struct + func NewBase64Cleaner(r io.Reader) *Base64Cleaner + func (qp *Base64Cleaner) Read(p []byte) (n int, err error) + type MIMEBody struct + Attachments []MIMEPart + HTML string + Inlines []MIMEPart + IsTextFromHTML bool + OtherParts []MIMEPart + Root MIMEPart + Text string + func ParseMIMEBody(mailMsg *mail.Message) (*MIMEBody, error) + func (m *MIMEBody) AddressList(key string) ([]*mail.Address, error) + func (m *MIMEBody) GetHeader(name string) string + type MIMEPart interface + Charset func() string + Content func() []byte + ContentType func() string + Disposition func() string + FileName func() string + FirstChild func() MIMEPart + Header func() textproto.MIMEHeader + NextSibling func() MIMEPart + Parent func() MIMEPart + SetCharset func(string) + SetContent func([]byte) + SetContentType func(string) + SetDisposition func(string) + SetFileName func(string) + SetFirstChild func(MIMEPart) + SetHeader func(textproto.MIMEHeader) + SetNextSibling func(MIMEPart) + SetParent func(MIMEPart) + func BreadthMatchAll(p MIMEPart, matcher MIMEPartMatcher) []MIMEPart + func BreadthMatchFirst(p MIMEPart, matcher MIMEPartMatcher) MIMEPart + func DepthMatchAll(p MIMEPart, matcher MIMEPartMatcher) []MIMEPart + func DepthMatchFirst(p MIMEPart, matcher MIMEPartMatcher) MIMEPart + func NewMIMEPart(parent MIMEPart, contentType string) MIMEPart + func ParseMIME(reader *bufio.Reader) (MIMEPart, error) + type MIMEPartMatcher func(part MIMEPart) bool