Documentation ¶
Index ¶
- Constants
- func AStringEncode(s string) []byte
- func AStringEncodeByteString(bs []byte) []byte
- func ByteStringAll(str []byte, fn func(byte) bool) bool
- func IsAstringChar(b byte) bool
- func IsAtomChar(b byte) bool
- func IsAtomSpecialChar(b byte) bool
- func IsChar(b byte) bool
- func IsCtlChar(b byte) bool
- func IsDigitChar(b byte) bool
- func IsListWildcardChar(b byte) bool
- func IsQuotedSpecialChar(b byte) bool
- func IsRespSpecialChar(b byte) bool
- func MailboxNameEncode(s string) []byte
- func ModifiedBase64Decode(data []byte) ([]byte, error)
- func ModifiedBase64Encode(data []byte) []byte
- func ModifiedUTF7Decode(data []byte) ([]byte, error)
- func ModifiedUTF7Encode(data []byte) []byte
- func QuotedStringEncode(str string) []byte
- func QuotedStringEncodeByteString(str []byte) []byte
- func UTF16BEToUTF8(data []byte) []byte
- func UTF8ToUTF16BE(data []byte) []byte
- type BufferedWriter
- type Client
- func (c *Client) Connect() error
- func (c *Client) HasCap(cap string) bool
- func (c *Client) SendCommand(cmd Command) ([]Response, *ResponseStatus, error)
- func (c *Client) SendCommandClose() error
- func (c *Client) SendCommandCreate(mailboxName string) error
- func (c *Client) SendCommandDelete(mailboxName string) error
- func (c *Client) SendCommandExamine(mailboxName string) (*ResponseSetExamine, error)
- func (c *Client) SendCommandLSub(ref, pattern string) (*ResponseSetLSub, error)
- func (c *Client) SendCommandList(ref, pattern string) (*ResponseSetList, error)
- func (c *Client) SendCommandLogout() error
- func (c *Client) SendCommandRename(mailboxName, mailboxNewName string) error
- func (c *Client) SendCommandSearch(charset string, key SearchKey) (*ResponseSetSearch, error)
- func (c *Client) SendCommandSelect(mailboxName string) (*ResponseSetSelect, error)
- func (c *Client) SendCommandSubscribe(mailboxName string) error
- func (c *Client) SendCommandUnsubscribe(mailboxName string) error
- func (c *Client) SendCommandWithResponseSet(cmd Command, rs ResponseSet) error
- type ClientState
- type Command
- type CommandAuthenticateCramMD5
- type CommandAuthenticatePlain
- type CommandCapability
- type CommandClose
- type CommandCreate
- type CommandDelete
- type CommandExamine
- type CommandLSub
- type CommandList
- type CommandLogout
- type CommandRename
- type CommandResponse
- type CommandSearch
- type CommandSelect
- type CommandSubscribe
- type CommandUnsubscribe
- type Literal
- type MailboxList
- type Response
- type ResponseBad
- type ResponseBye
- type ResponseCapability
- type ResponseContinuation
- type ResponseExists
- type ResponseFlags
- type ResponseLSub
- type ResponseList
- type ResponseNo
- type ResponseOk
- type ResponsePreAuth
- type ResponseRecent
- type ResponseSearch
- type ResponseSet
- type ResponseSetExamine
- type ResponseSetLSub
- type ResponseSetList
- type ResponseSetSearch
- type ResponseSetSelect
- type ResponseStatus
- type ResponseText
- type SearchKey
- func ParseSearchString(str string) (SearchKey, error)
- func SearchKeyAll() SearchKey
- func SearchKeyAnswered() SearchKey
- func SearchKeyBCC(str string) SearchKey
- func SearchKeyBefore(date time.Time) SearchKey
- func SearchKeyBody(str string) SearchKey
- func SearchKeyCC(str string) SearchKey
- func SearchKeyDeleted() SearchKey
- func SearchKeyDraft() SearchKey
- func SearchKeyFlagged() SearchKey
- func SearchKeyFrom(str string) SearchKey
- func SearchKeyHeader(name, str string) SearchKey
- func SearchKeyKeyword(keyword string) SearchKey
- func SearchKeyLarger(size uint32) SearchKey
- func SearchKeyList(list []SearchKey) SearchKey
- func SearchKeyNew() SearchKey
- func SearchKeyNot(key SearchKey) SearchKey
- func SearchKeyOld() SearchKey
- func SearchKeyOn(date time.Time) SearchKey
- func SearchKeyOr(key1, key2 SearchKey) SearchKey
- func SearchKeyRecent() SearchKey
- func SearchKeySeen() SearchKey
- func SearchKeySentBefore(date time.Time) SearchKey
- func SearchKeySentOn(date time.Time) SearchKey
- func SearchKeySentSince(date time.Time) SearchKey
- func SearchKeySequenceSet(set SequenceSet) SearchKey
- func SearchKeySince(date time.Time) SearchKey
- func SearchKeySmaller(size uint32) SearchKey
- func SearchKeySubject(str string) SearchKey
- func SearchKeyText(str string) SearchKey
- func SearchKeyTo(str string) SearchKey
- func SearchKeyUID(set SequenceSet) SearchKey
- func SearchKeyUnanswered() SearchKey
- func SearchKeyUndeleted() SearchKey
- func SearchKeyUndraft() SearchKey
- func SearchKeyUnflagged() SearchKey
- func SearchKeyUnkeyword(keyword string) SearchKey
- func SearchKeyUnseen() SearchKey
- type SequenceNumber
- type SequenceRange
- type SequenceSet
- type SequenceSetEntry
- type Stream
- func (s *Stream) IsEmpty() (bool, error)
- func (s *Stream) Peek(n int) ([]byte, error)
- func (s *Stream) PeekUntil(delim []byte) ([]byte, error)
- func (s *Stream) PeekUntilByte(delim byte) ([]byte, error)
- func (s *Stream) PeekUpTo(n int) ([]byte, error)
- func (s *Stream) Read(n int) ([]byte, error)
- func (s *Stream) ReadAll() ([]byte, error)
- func (s *Stream) ReadIMAPAstring() ([]byte, error)
- func (s *Stream) ReadIMAPFlagList() ([]string, error)
- func (s *Stream) ReadIMAPLiteralString() ([]byte, error)
- func (s *Stream) ReadIMAPMailboxList() (*MailboxList, error)
- func (s *Stream) ReadIMAPNumber() (uint32, error)
- func (s *Stream) ReadIMAPQuotedChar() (byte, bool, error)
- func (s *Stream) ReadIMAPQuotedString() ([]byte, error)
- func (s *Stream) ReadUntil(delim []byte) ([]byte, error)
- func (s *Stream) ReadUntilAndSkip(delim []byte) ([]byte, error)
- func (s *Stream) ReadUntilByte(delim byte) ([]byte, error)
- func (s *Stream) ReadUntilByteAndSkip(delim byte) ([]byte, error)
- func (s *Stream) ReadWhile(fn func(byte) bool) ([]byte, error)
- func (s *Stream) Skip(n int) error
- func (s *Stream) SkipByte(b byte) (bool, error)
- func (s *Stream) SkipBytes(bs []byte) (bool, error)
- func (s *Stream) SkipWhile(fn func(byte) bool) error
- func (s *Stream) StartsWithByte(b byte) (bool, error)
- func (s *Stream) StartsWithBytes(bs []byte) (bool, error)
Constants ¶
const IMAPDateFormat = "02-Jan-2006"
Variables ¶
This section is empty.
Functions ¶
func AStringEncode ¶
func AStringEncodeByteString ¶
func IsAstringChar ¶
func IsAtomChar ¶
func IsAtomSpecialChar ¶
func IsDigitChar ¶
func IsListWildcardChar ¶
func IsQuotedSpecialChar ¶
func IsRespSpecialChar ¶
func MailboxNameEncode ¶
func ModifiedBase64Decode ¶
func ModifiedBase64Encode ¶
func ModifiedUTF7Decode ¶
func ModifiedUTF7Encode ¶
func QuotedStringEncode ¶
func UTF16BEToUTF8 ¶
func UTF8ToUTF16BE ¶
Types ¶
type BufferedWriter ¶
func NewBufferedWriter ¶
func NewBufferedWriter(w io.Writer) *BufferedWriter
func (*BufferedWriter) Append ¶
func (w *BufferedWriter) Append(data []byte)
func (*BufferedWriter) AppendString ¶
func (w *BufferedWriter) AppendString(s string)
func (*BufferedWriter) Flush ¶
func (w *BufferedWriter) Flush() error
func (*BufferedWriter) Reset ¶
func (w *BufferedWriter) Reset()
type Client ¶
type Client struct { Host string Port int TLS bool CACertPath string CertPath string KeyPath string AuthMechanism string Login string Password string Conn net.Conn Stream *Stream Writer *BufferedWriter State ClientState Caps map[string]bool Tag int // contains filtered or unexported fields }
---------------------------------------------------------------------------
Client
---------------------------------------------------------------------------
func (*Client) SendCommand ¶
func (c *Client) SendCommand(cmd Command) ([]Response, *ResponseStatus, error)
func (*Client) SendCommandClose ¶
func (*Client) SendCommandCreate ¶
func (*Client) SendCommandDelete ¶
func (*Client) SendCommandExamine ¶
func (c *Client) SendCommandExamine(mailboxName string) (*ResponseSetExamine, error)
func (*Client) SendCommandLSub ¶
func (c *Client) SendCommandLSub(ref, pattern string) (*ResponseSetLSub, error)
func (*Client) SendCommandList ¶
func (c *Client) SendCommandList(ref, pattern string) (*ResponseSetList, error)
func (*Client) SendCommandLogout ¶
func (*Client) SendCommandRename ¶
func (*Client) SendCommandSearch ¶
func (c *Client) SendCommandSearch(charset string, key SearchKey) (*ResponseSetSearch, error)
func (*Client) SendCommandSelect ¶
func (c *Client) SendCommandSelect(mailboxName string) (*ResponseSetSelect, error)
func (*Client) SendCommandSubscribe ¶
func (*Client) SendCommandUnsubscribe ¶
func (*Client) SendCommandWithResponseSet ¶
func (c *Client) SendCommandWithResponseSet(cmd Command, rs ResponseSet) error
type ClientState ¶
type ClientState string
---------------------------------------------------------------------------
Client state
---------------------------------------------------------------------------
const ( ClientStateDisconnected ClientState = "disconnected" ClientStateNotAuthenticated ClientState = "not-authenticated" ClientStateAuthenticated ClientState = "authenticated" ClientStateLogout ClientState = "logout" )
type Command ¶
type Command interface { Args() []interface{} Continue(*BufferedWriter, *ResponseContinuation) error }
type CommandAuthenticateCramMD5 ¶
CRAM-MD5 (RFC 2195)
func (*CommandAuthenticateCramMD5) Args ¶
func (c *CommandAuthenticateCramMD5) Args() []interface{}
func (*CommandAuthenticateCramMD5) Continue ¶
func (c *CommandAuthenticateCramMD5) Continue(w *BufferedWriter, r *ResponseContinuation) error
type CommandAuthenticatePlain ¶
---------------------------------------------------------------------------
Command: AUTHENTICATE
--------------------------------------------------------------------------- PLAIN (RFC 4616)
func (*CommandAuthenticatePlain) Args ¶
func (c *CommandAuthenticatePlain) Args() []interface{}
func (*CommandAuthenticatePlain) Continue ¶
func (c *CommandAuthenticatePlain) Continue(w *BufferedWriter, r *ResponseContinuation) error
type CommandCapability ¶
type CommandCapability struct { }
---------------------------------------------------------------------------
Command: CAPABILITY
---------------------------------------------------------------------------
func (*CommandCapability) Args ¶
func (c *CommandCapability) Args() []interface{}
func (*CommandCapability) Continue ¶
func (c *CommandCapability) Continue(w *BufferedWriter, r *ResponseContinuation) error
type CommandClose ¶
type CommandClose struct{}
---------------------------------------------------------------------------
Command: CLOSE
---------------------------------------------------------------------------
func (*CommandClose) Args ¶
func (c *CommandClose) Args() []interface{}
func (*CommandClose) Continue ¶
func (c *CommandClose) Continue(w *BufferedWriter, r *ResponseContinuation) error
type CommandCreate ¶
type CommandCreate struct {
MailboxName string
}
---------------------------------------------------------------------------
Command: CREATE
---------------------------------------------------------------------------
func (*CommandCreate) Args ¶
func (c *CommandCreate) Args() []interface{}
func (*CommandCreate) Continue ¶
func (c *CommandCreate) Continue(w *BufferedWriter, r *ResponseContinuation) error
type CommandDelete ¶
type CommandDelete struct {
MailboxName string
}
---------------------------------------------------------------------------
Command: DELETE
---------------------------------------------------------------------------
func (*CommandDelete) Args ¶
func (c *CommandDelete) Args() []interface{}
func (*CommandDelete) Continue ¶
func (c *CommandDelete) Continue(w *BufferedWriter, r *ResponseContinuation) error
type CommandExamine ¶
type CommandExamine struct {
MailboxName string
}
---------------------------------------------------------------------------
Command: EXAMINE
---------------------------------------------------------------------------
func (*CommandExamine) Args ¶
func (c *CommandExamine) Args() []interface{}
func (*CommandExamine) Continue ¶
func (c *CommandExamine) Continue(w *BufferedWriter, r *ResponseContinuation) error
type CommandLSub ¶
---------------------------------------------------------------------------
Command: LSUB
---------------------------------------------------------------------------
func (*CommandLSub) Args ¶
func (c *CommandLSub) Args() []interface{}
func (*CommandLSub) Continue ¶
func (c *CommandLSub) Continue(w *BufferedWriter, r *ResponseContinuation) error
type CommandList ¶
---------------------------------------------------------------------------
Command: LIST
---------------------------------------------------------------------------
func (*CommandList) Args ¶
func (c *CommandList) Args() []interface{}
func (*CommandList) Continue ¶
func (c *CommandList) Continue(w *BufferedWriter, r *ResponseContinuation) error
type CommandLogout ¶
type CommandLogout struct{}
---------------------------------------------------------------------------
Command: LOGOUT
---------------------------------------------------------------------------
func (*CommandLogout) Args ¶
func (c *CommandLogout) Args() []interface{}
func (*CommandLogout) Continue ¶
func (c *CommandLogout) Continue(w *BufferedWriter, r *ResponseContinuation) error
type CommandRename ¶
---------------------------------------------------------------------------
Command: RENAME
---------------------------------------------------------------------------
func (*CommandRename) Args ¶
func (c *CommandRename) Args() []interface{}
func (*CommandRename) Continue ¶
func (c *CommandRename) Continue(w *BufferedWriter, r *ResponseContinuation) error
type CommandResponse ¶
type CommandResponse struct { Data []Response Status *ResponseStatus Error error }
type CommandSearch ¶
---------------------------------------------------------------------------
Command: SEARCH
---------------------------------------------------------------------------
func (*CommandSearch) Args ¶
func (c *CommandSearch) Args() []interface{}
func (*CommandSearch) Continue ¶
func (c *CommandSearch) Continue(w *BufferedWriter, r *ResponseContinuation) error
type CommandSelect ¶
type CommandSelect struct {
MailboxName string
}
---------------------------------------------------------------------------
Command: SELECT
---------------------------------------------------------------------------
func (*CommandSelect) Args ¶
func (c *CommandSelect) Args() []interface{}
func (*CommandSelect) Continue ¶
func (c *CommandSelect) Continue(w *BufferedWriter, r *ResponseContinuation) error
type CommandSubscribe ¶
type CommandSubscribe struct {
MailboxName string
}
---------------------------------------------------------------------------
Command: SUBSCRIBE
---------------------------------------------------------------------------
func (*CommandSubscribe) Args ¶
func (c *CommandSubscribe) Args() []interface{}
func (*CommandSubscribe) Continue ¶
func (c *CommandSubscribe) Continue(w *BufferedWriter, r *ResponseContinuation) error
type CommandUnsubscribe ¶
type CommandUnsubscribe struct {
MailboxName string
}
---------------------------------------------------------------------------
Command: UNSUBSCRIBE
---------------------------------------------------------------------------
func (*CommandUnsubscribe) Args ¶
func (c *CommandUnsubscribe) Args() []interface{}
func (*CommandUnsubscribe) Continue ¶
func (c *CommandUnsubscribe) Continue(w *BufferedWriter, r *ResponseContinuation) error
type MailboxList ¶
type Response ¶
type Response interface { fmt.GoStringer Read(*Stream) error }
func ReadResponse ¶
func ReadResponseContinuation ¶
---------------------------------------------------------------------------
Command continuation responses
---------------------------------------------------------------------------
func ReadResponseData ¶
---------------------------------------------------------------------------
Server data responses
---------------------------------------------------------------------------
func ReadResponseStatus ¶
---------------------------------------------------------------------------
Status responses
---------------------------------------------------------------------------
type ResponseBad ¶
type ResponseBad struct {
Text *ResponseText
}
BAD
func (*ResponseBad) GoString ¶
func (r *ResponseBad) GoString() string
func (*ResponseBad) Read ¶
func (r *ResponseBad) Read(s *Stream) error
type ResponseBye ¶
type ResponseBye struct {
Text *ResponseText
}
BYE
func (*ResponseBye) GoString ¶
func (r *ResponseBye) GoString() string
func (*ResponseBye) Read ¶
func (r *ResponseBye) Read(s *Stream) error
type ResponseCapability ¶
type ResponseCapability struct {
Caps []string
}
CAPABILITY
func (*ResponseCapability) GoString ¶
func (r *ResponseCapability) GoString() string
func (*ResponseCapability) Read ¶
func (r *ResponseCapability) Read(s *Stream) error
type ResponseContinuation ¶
type ResponseContinuation struct {
Text string
}
func (*ResponseContinuation) GoString ¶
func (r *ResponseContinuation) GoString() string
func (*ResponseContinuation) Read ¶
func (r *ResponseContinuation) Read(s *Stream) error
type ResponseExists ¶
type ResponseExists struct {
Count uint32
}
EXISTS
func (*ResponseExists) GoString ¶
func (r *ResponseExists) GoString() string
func (*ResponseExists) Read ¶
func (r *ResponseExists) Read(s *Stream) error
type ResponseFlags ¶
type ResponseFlags struct {
Flags []string
}
FLAGS
func (*ResponseFlags) GoString ¶
func (r *ResponseFlags) GoString() string
func (*ResponseFlags) Read ¶
func (r *ResponseFlags) Read(s *Stream) error
type ResponseLSub ¶
type ResponseLSub MailboxList
LSUB
func (*ResponseLSub) GoString ¶
func (r *ResponseLSub) GoString() string
func (*ResponseLSub) Read ¶
func (r *ResponseLSub) Read(s *Stream) error
type ResponseList ¶
type ResponseList MailboxList
LIST
func (*ResponseList) GoString ¶
func (r *ResponseList) GoString() string
func (*ResponseList) Read ¶
func (r *ResponseList) Read(s *Stream) error
type ResponseNo ¶
type ResponseNo struct {
Text *ResponseText
}
NO
func (*ResponseNo) GoString ¶
func (r *ResponseNo) GoString() string
func (*ResponseNo) Read ¶
func (r *ResponseNo) Read(s *Stream) error
type ResponseOk ¶
type ResponseOk struct {
Text *ResponseText
}
OK
func (*ResponseOk) GoString ¶
func (r *ResponseOk) GoString() string
func (*ResponseOk) Read ¶
func (r *ResponseOk) Read(s *Stream) error
type ResponsePreAuth ¶
type ResponsePreAuth struct {
Text *ResponseText
}
PREAUTH
func (*ResponsePreAuth) GoString ¶
func (r *ResponsePreAuth) GoString() string
func (*ResponsePreAuth) Read ¶
func (r *ResponsePreAuth) Read(s *Stream) error
type ResponseRecent ¶
type ResponseRecent struct {
Count uint32
}
RECENT
func (*ResponseRecent) GoString ¶
func (r *ResponseRecent) GoString() string
func (*ResponseRecent) Read ¶
func (r *ResponseRecent) Read(s *Stream) error
type ResponseSearch ¶
type ResponseSearch struct {
MessageIds []uint32
}
SEARCH
func (*ResponseSearch) GoString ¶
func (r *ResponseSearch) GoString() string
func (*ResponseSearch) Read ¶
func (r *ResponseSearch) Read(s *Stream) error
type ResponseSet ¶
type ResponseSet interface {
Init([]Response, *ResponseStatus) error
}
type ResponseSetExamine ¶
type ResponseSetExamine struct { Flags []string Exists uint32 Recent uint32 Unseen uint32 PermanentFlags []string UIDNext uint32 UIDValidity uint32 }
---------------------------------------------------------------------------
Response set: EXAMINE
---------------------------------------------------------------------------
func (*ResponseSetExamine) Init ¶
func (rs *ResponseSetExamine) Init(resps []Response, status *ResponseStatus) error
type ResponseSetLSub ¶
type ResponseSetLSub struct {
Mailboxes []MailboxList
}
---------------------------------------------------------------------------
Response set: LSUB
---------------------------------------------------------------------------
func (*ResponseSetLSub) Init ¶
func (rs *ResponseSetLSub) Init(resps []Response, status *ResponseStatus) error
type ResponseSetList ¶
type ResponseSetList struct {
Mailboxes []MailboxList
}
---------------------------------------------------------------------------
Response set: LIST
---------------------------------------------------------------------------
func (*ResponseSetList) Init ¶
func (rs *ResponseSetList) Init(resps []Response, status *ResponseStatus) error
type ResponseSetSearch ¶
type ResponseSetSearch struct {
MessageIds SequenceSet
}
---------------------------------------------------------------------------
Response set: SEARCH
---------------------------------------------------------------------------
func (*ResponseSetSearch) Init ¶
func (rs *ResponseSetSearch) Init(resps []Response, status *ResponseStatus) error
type ResponseSetSelect ¶
type ResponseSetSelect struct { Flags []string Exists uint32 Recent uint32 Unseen uint32 PermanentFlags []string UIDNext uint32 UIDValidity uint32 }
---------------------------------------------------------------------------
Response set: SELECT
---------------------------------------------------------------------------
func (*ResponseSetSelect) Init ¶
func (rs *ResponseSetSelect) Init(resps []Response, status *ResponseStatus) error
type ResponseStatus ¶
func (*ResponseStatus) GoString ¶
func (r *ResponseStatus) GoString() string
func (*ResponseStatus) IsOk ¶
func (r *ResponseStatus) IsOk() bool
func (*ResponseStatus) Read ¶
func (r *ResponseStatus) Read(s *Stream) error
type ResponseText ¶
type ResponseText struct { Text string // Optional Code string CodeString string CodeData interface{} }
---------------------------------------------------------------------------
Response text
---------------------------------------------------------------------------
func (*ResponseText) GoString ¶
func (r *ResponseText) GoString() string
func (*ResponseText) Read ¶
func (r *ResponseText) Read(s *Stream) error
func (*ResponseText) ReadCodeData ¶
func (r *ResponseText) ReadCodeData(data []byte) error
type SearchKey ¶
type SearchKey []interface{}
func ParseSearchString ¶
func SearchKeyAll ¶
func SearchKeyAll() SearchKey
func SearchKeyAnswered ¶
func SearchKeyAnswered() SearchKey
func SearchKeyBCC ¶
func SearchKeyBefore ¶
func SearchKeyBody ¶
func SearchKeyCC ¶
func SearchKeyDeleted ¶
func SearchKeyDeleted() SearchKey
func SearchKeyDraft ¶
func SearchKeyDraft() SearchKey
func SearchKeyFlagged ¶
func SearchKeyFlagged() SearchKey
func SearchKeyFrom ¶
func SearchKeyHeader ¶
func SearchKeyKeyword ¶
func SearchKeyLarger ¶
func SearchKeyList ¶
func SearchKeyNew ¶
func SearchKeyNew() SearchKey
func SearchKeyNot ¶
func SearchKeyOld ¶
func SearchKeyOld() SearchKey
func SearchKeyOn ¶
func SearchKeyOr ¶
func SearchKeyRecent ¶
func SearchKeyRecent() SearchKey
func SearchKeySeen ¶
func SearchKeySeen() SearchKey
func SearchKeySentBefore ¶
func SearchKeySentOn ¶
func SearchKeySentSince ¶
func SearchKeySequenceSet ¶
func SearchKeySequenceSet(set SequenceSet) SearchKey
func SearchKeySince ¶
func SearchKeySmaller ¶
func SearchKeySubject ¶
func SearchKeyText ¶
func SearchKeyTo ¶
func SearchKeyUID ¶
func SearchKeyUID(set SequenceSet) SearchKey
func SearchKeyUnanswered ¶
func SearchKeyUnanswered() SearchKey
func SearchKeyUndeleted ¶
func SearchKeyUndeleted() SearchKey
func SearchKeyUndraft ¶
func SearchKeyUndraft() SearchKey
func SearchKeyUnflagged ¶
func SearchKeyUnflagged() SearchKey
func SearchKeyUnkeyword ¶
func SearchKeyUnseen ¶
func SearchKeyUnseen() SearchKey
type SequenceNumber ¶
type SequenceNumber uint32
---------------------------------------------------------------------------
Sequence number
---------------------------------------------------------------------------
const SequenceStar SequenceNumber = 0
SequenceStar represents '*', i.e. the largest number in use in the current context. We use zero since it's available: sequence numbers are always greater than zero.
func (SequenceNumber) GoString ¶
func (n SequenceNumber) GoString() string
func (SequenceNumber) MarshalText ¶
func (n SequenceNumber) MarshalText() ([]byte, error)
func (SequenceNumber) String ¶
func (n SequenceNumber) String() string
type SequenceRange ¶
type SequenceRange struct { First SequenceNumber Last SequenceNumber }
---------------------------------------------------------------------------
Sequence range
---------------------------------------------------------------------------
func NewSequenceRange ¶
func NewSequenceRange(first, last SequenceNumber) SequenceRange
func (SequenceRange) GoString ¶
func (r SequenceRange) GoString() string
func (SequenceRange) MarshalText ¶
func (r SequenceRange) MarshalText() ([]byte, error)
func (SequenceRange) String ¶
func (r SequenceRange) String() string
type SequenceSet ¶
type SequenceSet []SequenceSetEntry
func NewSequenceSet ¶
func NewSequenceSet() SequenceSet
func (*SequenceSet) Append ¶
func (s *SequenceSet) Append(e SequenceSetEntry)
func (SequenceSet) GoString ¶
func (s SequenceSet) GoString() string
func (SequenceSet) MarshalText ¶
func (s SequenceSet) MarshalText() ([]byte, error)
func (SequenceSet) String ¶
func (s SequenceSet) String() string
type SequenceSetEntry ¶
type SequenceSetEntry interface { fmt.Stringer fmt.GoStringer encoding.TextMarshaler }
---------------------------------------------------------------------------
Sequence set
---------------------------------------------------------------------------
type Stream ¶
func (*Stream) ReadIMAPAstring ¶
func (*Stream) ReadIMAPFlagList ¶
func (*Stream) ReadIMAPLiteralString ¶
func (*Stream) ReadIMAPMailboxList ¶
func (s *Stream) ReadIMAPMailboxList() (*MailboxList, error)