imapclient

package
v0.0.0-...-e57fc14 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2015 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CRAMMD5Auth

func CRAMMD5Auth(username, secret string) imap.SASL

CRAMMD5Auth provides CRAM-MD5 auth for imap.SASL derived from net/smtp/auth.go.

func ConnectAndCheck

func ConnectAndCheck(host string, user string, password string, explicitssl bool, subject string, config *ImapSettings) (int64, []byte, error)

ConnectAndCheck connects to an IMAP host, waiting for a given subject in INBOX for timeoutrcv seconds. It checks for new mail every waittime seconds, but reacts on a unilateral response indicating new mail.

Types

type ImapSettings

type ImapSettings struct {
	LoadRecent int
	Timeout    int
	TimeoutRcv int64
	WaitTime   int
}

ImapSettings defines common timeouts and durations in sec.

Jump to

Keyboard shortcuts

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