Documentation ¶
Index ¶
- Variables
- type Addr
- type Box
- type Client
- func (c *Client) Box(name string) *Box
- func (c *Client) Boxes() []*Box
- func (c *Client) Close() error
- func (c *Client) GmailMsgID(id uint64) (*Box, error)
- func (c *Client) GmailRawSearch(query string) (*Box, error)
- func (c *Client) GmailSearch(query string) (*Box, error)
- func (c *Client) GmailThreadID(id uint64) (*Box, error)
- func (c *Client) Inbox() *Box
- func (c *Client) IsGmail() bool
- type Flags
- type Mode
- type Msg
- type MsgHdr
- type MsgPart
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug = false
Functions ¶
This section is empty.
Types ¶
type Addr ¶
An Addr represents a single, named email address. If Name is empty, only the email address is known. If Email is empty, the Addr represents an unspecified (but named) group.
type Box ¶
type Box struct { Name string // name of mailbox Elem string // last element in name Client *Client // contains filtered or unexported fields }
A Box represents an IMAP mailbox.
type Flags ¶
type Flags uint32
const ( FlagJunk Flags = 1 << iota FlagNonJunk FlagReplied FlagFlagged FlagDeleted FlagDraft FlagRecent FlagSeen FlagNoInferiors FlagNoSelect FlagMarked FlagUnMarked FlagHasChildren FlagHasNoChildren FlagInbox // Gmail extension FlagAllMail // Gmail extension FlagDrafts // Gmail extension FlagSent // Gmail extension FlagSpam // Gmail extension FlagStarred // Gmail extension FlagTrash // Gmail extension FlagImportant // Gmail extension FlagMuted // Gmail extension )
type Msg ¶
type Msg struct { Box *Box // box containing message Date time.Time // date Flags Flags // message flags Bytes int64 // size in bytes Lines int64 // number of lines Hdr *MsgHdr // MIME header Root MsgPart // top-level message part GmailID uint64 // Gmail message id GmailThread uint64 // Gmail thread id GmailLabels []string UID uint64 // unique id for this message // contains filtered or unexported fields }
A Msg represents an IMAP message.
type MsgHdr ¶
type MsgHdr struct { Date string Subject string From []Addr Sender []Addr ReplyTo []Addr To []Addr CC []Addr BCC []Addr InReplyTo string MessageID string Digest string }
A Hdr represents a message header.
type MsgPart ¶
type MsgPart struct { Msg *Msg // containing message Type string ContentID string Desc string Encoding string Bytes int64 Lines int64 Charset string Name string Hdr *MsgHdr ID string Child []*MsgPart // contains filtered or unexported fields }
A MsgPart represents a single part of a MIME-encoded message.
Click to show internal directories.
Click to hide internal directories.