Documentation ¶
Index ¶
- func DecodeRFC2047String(s string) (string, error)
- func NewPlainTextMail(filePath string) *plainTextMail
- func ParseBoby(message *mail.Message) (reader io.Reader, err error)
- func ParseFromAddress(message *mail.Message) (*mail.Address, error)
- func ParseSubject(message *mail.Message) (string, error)
- func ParseToAddress(message *mail.Message) ([]*mail.Address, error)
- type Mail
- type MailFileFactory
- type POP3Mail
- func (m *POP3Mail) Close() error
- func (m *POP3Mail) Content() io.Reader
- func (m *POP3Mail) From() *mail.Address
- func (m *POP3Mail) Name() string
- func (m *POP3Mail) Parse() (err error)
- func (m *POP3Mail) Path() string
- func (m *POP3Mail) String() string
- func (m *POP3Mail) Subject() string
- func (m *POP3Mail) To() []*mail.Address
- type POP3MailFileFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeRFC2047String ¶
func NewPlainTextMail ¶
func NewPlainTextMail(filePath string) *plainTextMail
Types ¶
type MailFileFactory ¶
type POP3Mail ¶
type POP3Mail struct {
// contains filtered or unexported fields
}
func NewPOP3Mail ¶
type POP3MailFileFactory ¶
type POP3MailFileFactory struct{}
func (*POP3MailFileFactory) Create ¶
func (p *POP3MailFileFactory) Create(filePath string) Mail
Click to show internal directories.
Click to hide internal directories.