Documentation ¶
Index ¶
- Constants
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) Expunge() error
- func (c *Conn) Fetch(uid string) (string, error)
- func (c *Conn) LoginSASL(username, password string) error
- func (c *Conn) Search(qstr string) ([]string, error)
- func (c *Conn) Select(mbox string) error
- func (c *Conn) Store(uid, flags string) error
Constants ¶
View Source
const ( IMAPFlagDeleted = "\\Deleted" IMAPFlagSeen = "\\Seen" )
Common IMAP message flags.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn knows just enough about the IMAP protocol to run a simple prober (not enough for a real, functional client).
func Dial ¶
func Dial(ctx context.Context, addr string, conf *tls.Config, log *log.Logger, dnsMap map[string]string) (*Conn, error)
Dial a remote IMAP server (with mandatory TLS). The IMAP connection is bound to the lifetime of the Context.
Click to show internal directories.
Click to hide internal directories.