imap

package
v0.0.0-...-9ae858a Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2021 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PARSE_IMAP_ERR = errors.New("error parsing mail from imap server")

Functions

This section is empty.

Types

type Account

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

func NewAccount

func NewAccount(l *lib.Logger, c *config.Account) *Account

func (*Account) Run

func (a *Account) Run(responses chan<- workers.Message)

type ImapWorker

type ImapWorker struct {
	Accounts map[string]*Account
	// contains filtered or unexported fields
}

func NewImapWorker

func NewImapWorker(l *lib.Logger, cfg []*config.Account) *ImapWorker

func (*ImapWorker) PostMessage

func (iw *ImapWorker) PostMessage(m workers.Message)

func (*ImapWorker) Responses

func (iw *ImapWorker) Responses() <-chan workers.Message

func (*ImapWorker) Run

func (iw *ImapWorker) Run()

Jump to

Keyboard shortcuts

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