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 ¶
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)
Click to show internal directories.
Click to hide internal directories.