mail2

package
v0.0.0-...-f8d955e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Header      mail.Header
	Body        []*mail.Message
	Attachments []*mail.Message
}

func ReadMessage

func ReadMessage(r io.Reader) (msg *Message, err error)

func ReadMessageStr

func ReadMessageStr(r string) (msg *Message, err error)

func (*Message) GetAttachmentBytes

func (m *Message) GetAttachmentBytes(index int) (file []byte, md5checksum [16]byte, err error)

func (*Message) GetTextBody

func (m *Message) GetTextBody(preferHTML bool) (string, error)

func (*Message) GetTextMessage

func (m *Message) GetTextMessage(preferHTML bool) (*mail.Message, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL