imaplib

package
v0.0.0-...-25caf83 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 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 IMapClient

type IMapClient struct {
	Username    string
	Password    string
	Host        string
	Mode        string
	ModeOptions map[string]interface{}
	// contains filtered or unexported fields
}

func New

func New() (imapclnt *IMapClient)

func (*IMapClient) Connect

func (imapclnt *IMapClient) Connect() (err error)

func (*IMapClient) MailBoxes

func (imapclnt *IMapClient) MailBoxes(filter string) (mailboxes []*imap.ListData, err error)

func (*IMapClient) ReadMessages

func (imapclnt *IMapClient) ReadMessages(box string, recent bool, onSetCriterial func(string, string, *imap.SearchCriteria) error, onReadMessage func(string, string, *emailreader.EmailReader) (err error), max ...uint32) (err error)

type OAuthBearer

type OAuthBearer struct {
	OAuth2  *oauth2.Config
	Enabled bool
}

func (*OAuthBearer) Authenticate

func (c *OAuthBearer) Authenticate(username string, password string, client *imapclient.Client) error

func (*OAuthBearer) ExchangeRefreshToken

func (c *OAuthBearer) ExchangeRefreshToken(refreshToken string) (*oauth2.Token, error)

Jump to

Keyboard shortcuts

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