instances

package
v0.0.0-...-d0c72dd Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mail

type Mail struct {
	gomail.Message
	RawMessage []byte
	// contains filtered or unexported fields
}

Mail is a wrapper struct around the go net/mail.Message struct. This allows us to throw it into the imap handler without magic stuff

func ParseMail

func ParseMail(data []byte) (*Mail, error)

ParseMail creates a Mail instance for a valid email. Calls net/mail.ReadMessage and returns any error occurring there

func (*Mail) Len

func (m *Mail) Len() int

func (*Mail) Read

func (m *Mail) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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