client

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 License: Unlicense Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const SUBJECT_LENGTH = 30

Variables

This section is empty.

Functions

This section is empty.

Types

type Imap

type Imap struct {
	// contains filtered or unexported fields
}

func New

func New(server, username, password, inbox, inboxPrefix string, allowInsecureSSL bool, logger *logrus.Logger) *Imap

func (*Imap) Connect

func (i *Imap) Connect() (err error)

func (*Imap) Disconnect

func (i *Imap) Disconnect() (err error)

func (Imap) FlagAndDeleteMessages

func (i Imap) FlagAndDeleteMessages(readMsgSeq *imap.SeqSet) (err error)

func (*Imap) GetMessages

func (i *Imap) GetMessages(messageChan chan *imap.Message, deleteDownloaded bool) (err error)

func (*Imap) ListInboxes added in v0.4.0

func (i *Imap) ListInboxes()

func (Imap) ProcessMessage

func (i Imap) ProcessMessage(msg *imap.Message, upload archivers.UploadFunc) error

Jump to

Keyboard shortcuts

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