Documentation ¶
Index ¶
- Constants
- func ParseDate(p *rfcparser.Parser) (time.Time, error)
- func ParseDateDayFixed(p *rfcparser.Parser) (int, error)
- func ParseDateMonth(p *rfcparser.Parser) (time.Month, error)
- func ParseDateText(p *rfcparser.Parser) (time.Time, error)
- func ParseDateTime(p *rfcparser.Parser) (time.Time, error)
- func ParseDateYear(p *rfcparser.Parser) (int, error)
- func ParseFlag(p *rfcparser.Parser) (string, error)
- func ParseFlagList(p *rfcparser.Parser) ([]string, error)
- func ParseMailbox(p *rfcparser.Parser) (rfcparser.String, error)
- func ParseNString(p *rfcparser.Parser) (rfcparser.String, bool, error)
- func ParseNZNumber(p *rfcparser.Parser) (int, error)
- func ParseTime(p *rfcparser.Parser) (int, int, int, error)
- func ParseZone(p *rfcparser.Parser) (*time.Location, error)
- func TryParseFlagList(p *rfcparser.Parser) ([]string, bool, error)
- type Append
- type AppendCommandParser
- type BodySection
- type BodySectionHeader
- type BodySectionHeaderFields
- type BodySectionMIME
- type BodySectionPart
- type BodySectionPartial
- type BodySectionText
- type Builder
- type Capability
- type CapabilityCommandParser
- type Check
- type CheckCommandParser
- type Close
- type CloseCommandParser
- type Command
- type Copy
- type CopyCommandParser
- type Create
- type CreateCommandParser
- type Delete
- type DeleteCommandParser
- type Done
- type Examine
- type ExamineCommandParser
- type Expunge
- type ExpungeCommandParser
- type Fetch
- type FetchAttribute
- type FetchAttributeAll
- type FetchAttributeBody
- type FetchAttributeBodySection
- type FetchAttributeBodyStructure
- type FetchAttributeEnvelope
- type FetchAttributeFast
- type FetchAttributeFlags
- type FetchAttributeFull
- type FetchAttributeInternalDate
- type FetchAttributeRFC822
- type FetchAttributeRFC822Header
- type FetchAttributeRFC822Size
- type FetchAttributeRFC822Text
- type FetchAttributeUID
- type FetchCommandParser
- type IDCommandParser
- type IDGet
- type IDSet
- type Idle
- type IdleCommandParser
- type InputCollector
- func (i *InputCollector) Bytes() []byte
- func (i *InputCollector) Read(dst []byte) (int, error)
- func (i *InputCollector) ReadByte() (byte, error)
- func (i *InputCollector) ReadBytes(delim byte) ([]byte, error)
- func (i *InputCollector) Reset()
- func (i *InputCollector) SetSource(source rfcparser.Reader)
- type LSub
- type LSubCommandParser
- type List
- type ListCommandParser
- type Login
- type LoginCommandParser
- type Logout
- type LogoutCommandParser
- type Move
- type MoveCommandParser
- type Noop
- type NoopCommandParser
- type Parser
- type Payload
- type Rename
- type RenameCommandParser
- type Search
- type SearchCommandParser
- type SearchKey
- type SearchKeyAll
- type SearchKeyAnswered
- type SearchKeyBCC
- type SearchKeyBefore
- type SearchKeyBody
- type SearchKeyCC
- type SearchKeyDeleted
- type SearchKeyDraft
- type SearchKeyFlagged
- type SearchKeyFrom
- type SearchKeyHeader
- type SearchKeyKeyword
- type SearchKeyLarger
- type SearchKeyList
- type SearchKeyNew
- type SearchKeyNot
- type SearchKeyOld
- type SearchKeyOn
- type SearchKeyOr
- type SearchKeyRecent
- type SearchKeySeen
- type SearchKeySentBefore
- type SearchKeySentOn
- type SearchKeySentSince
- type SearchKeySeqSet
- type SearchKeySince
- type SearchKeySmaller
- type SearchKeySubject
- type SearchKeyText
- type SearchKeyTo
- type SearchKeyUID
- type SearchKeyUnanswered
- type SearchKeyUndeleted
- type SearchKeyUndraft
- type SearchKeyUnflagged
- type SearchKeyUnkeyword
- type SearchKeyUnseen
- type Select
- type SelectCommandParser
- type SeqNum
- type SeqRange
- type StartTLS
- type StartTLSCommandParser
- type Status
- type StatusAttribute
- type StatusCommandParser
- type Store
- type StoreAction
- type StoreCommandParser
- type Subscribe
- type SubscribeCommandParser
- type UID
- type UIDCommandParser
- type UIDExpunge
- type UIDExpungeCommandParser
- type Unselect
- type UnselectCommandParser
- type Unsubscribe
- type UnsubscribeCommandParser
Constants ¶
View Source
const SeqNumValueAsterisk = SeqNum(0)
Variables ¶
This section is empty.
Functions ¶
func ParseMailbox ¶
ParseMailbox parses a mailbox name as defined in RFC 3501.
func ParseNString ¶
ParseNString pareses a string or NIL. If NIL was parsed the boolean return is set to false.
Types ¶
type AppendCommandParser ¶
type AppendCommandParser struct{}
func (AppendCommandParser) FromParser ¶
func (AppendCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type BodySection ¶
type BodySection interface {
String() string
}
type BodySectionHeader ¶
type BodySectionHeader struct{}
func (BodySectionHeader) String ¶
func (b BodySectionHeader) String() string
type BodySectionHeaderFields ¶
func (BodySectionHeaderFields) String ¶
func (b BodySectionHeaderFields) String() string
type BodySectionMIME ¶
type BodySectionMIME struct{}
func (BodySectionMIME) String ¶
func (b BodySectionMIME) String() string
type BodySectionPart ¶
type BodySectionPart struct { Part []int Section BodySection }
func (BodySectionPart) String ¶
func (b BodySectionPart) String() string
type BodySectionPartial ¶
type BodySectionText ¶
type BodySectionText struct{}
func (BodySectionText) String ¶
func (b BodySectionText) String() string
type Capability ¶
type Capability struct{}
func (Capability) SanitizedString ¶
func (l Capability) SanitizedString() string
func (Capability) String ¶
func (l Capability) String() string
type CapabilityCommandParser ¶
type CapabilityCommandParser struct{}
func (CapabilityCommandParser) FromParser ¶
func (CapabilityCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type CheckCommandParser ¶
type CheckCommandParser struct{}
func (CheckCommandParser) FromParser ¶
func (CheckCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type CloseCommandParser ¶
type CloseCommandParser struct{}
func (CloseCommandParser) FromParser ¶
func (CloseCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type Command ¶
func (Command) SanitizedString ¶
type Copy ¶
func (Copy) SanitizedString ¶
type CopyCommandParser ¶
type CopyCommandParser struct{}
func (CopyCommandParser) FromParser ¶
func (CopyCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type CreateCommandParser ¶
type CreateCommandParser struct{}
func (CreateCommandParser) FromParser ¶
func (CreateCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type DeleteCommandParser ¶
type DeleteCommandParser struct{}
func (DeleteCommandParser) FromParser ¶
func (DeleteCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type ExamineCommandParser ¶
type ExamineCommandParser struct{}
func (ExamineCommandParser) FromParser ¶
func (ExamineCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type ExpungeCommandParser ¶
type ExpungeCommandParser struct{}
func (ExpungeCommandParser) FromParser ¶
func (ExpungeCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type Fetch ¶
type Fetch struct { SeqSet []SeqRange Attributes []FetchAttribute }
func (Fetch) SanitizedString ¶
type FetchAttribute ¶
type FetchAttribute interface {
String() string
}
type FetchAttributeAll ¶
type FetchAttributeAll struct{}
func (FetchAttributeAll) String ¶
func (f FetchAttributeAll) String() string
type FetchAttributeBody ¶
type FetchAttributeBody struct{}
func (FetchAttributeBody) String ¶
func (f FetchAttributeBody) String() string
type FetchAttributeBodySection ¶
type FetchAttributeBodySection struct { Section BodySection Peek bool Partial *BodySectionPartial }
func (FetchAttributeBodySection) String ¶
func (f FetchAttributeBodySection) String() string
type FetchAttributeBodyStructure ¶
type FetchAttributeBodyStructure struct{}
func (FetchAttributeBodyStructure) String ¶
func (f FetchAttributeBodyStructure) String() string
type FetchAttributeEnvelope ¶
type FetchAttributeEnvelope struct{}
func (FetchAttributeEnvelope) String ¶
func (f FetchAttributeEnvelope) String() string
type FetchAttributeFast ¶
type FetchAttributeFast struct{}
func (FetchAttributeFast) String ¶
func (f FetchAttributeFast) String() string
type FetchAttributeFlags ¶
type FetchAttributeFlags struct{}
func (FetchAttributeFlags) String ¶
func (f FetchAttributeFlags) String() string
type FetchAttributeFull ¶
type FetchAttributeFull struct{}
func (FetchAttributeFull) String ¶
func (f FetchAttributeFull) String() string
type FetchAttributeInternalDate ¶
type FetchAttributeInternalDate struct{}
func (FetchAttributeInternalDate) String ¶
func (f FetchAttributeInternalDate) String() string
type FetchAttributeRFC822 ¶
type FetchAttributeRFC822 struct{}
func (FetchAttributeRFC822) String ¶
func (f FetchAttributeRFC822) String() string
type FetchAttributeRFC822Header ¶
type FetchAttributeRFC822Header struct{}
func (FetchAttributeRFC822Header) String ¶
func (f FetchAttributeRFC822Header) String() string
type FetchAttributeRFC822Size ¶
type FetchAttributeRFC822Size struct{}
func (FetchAttributeRFC822Size) String ¶
func (f FetchAttributeRFC822Size) String() string
type FetchAttributeRFC822Text ¶
type FetchAttributeRFC822Text struct{}
func (FetchAttributeRFC822Text) String ¶
func (f FetchAttributeRFC822Text) String() string
type FetchAttributeUID ¶
type FetchAttributeUID struct{}
func (FetchAttributeUID) String ¶
func (f FetchAttributeUID) String() string
type FetchCommandParser ¶
type FetchCommandParser struct{}
func (FetchCommandParser) FromParser ¶
func (FetchCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type IDCommandParser ¶
type IDCommandParser struct{}
func (IDCommandParser) FromParser ¶
func (IDCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type IDSet ¶
func (IDSet) SanitizedString ¶
type IdleCommandParser ¶
type IdleCommandParser struct{}
func (IdleCommandParser) FromParser ¶
func (IdleCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type InputCollector ¶
type InputCollector struct {
// contains filtered or unexported fields
}
func NewInputCollector ¶
func NewInputCollector(source rfcparser.Reader) *InputCollector
func (*InputCollector) Bytes ¶
func (i *InputCollector) Bytes() []byte
func (*InputCollector) ReadByte ¶
func (i *InputCollector) ReadByte() (byte, error)
func (*InputCollector) Reset ¶
func (i *InputCollector) Reset()
func (*InputCollector) SetSource ¶
func (i *InputCollector) SetSource(source rfcparser.Reader)
type LSub ¶
func (LSub) SanitizedString ¶
type LSubCommandParser ¶
type LSubCommandParser struct{}
func (LSubCommandParser) FromParser ¶
func (LSubCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type List ¶
func (List) SanitizedString ¶
type ListCommandParser ¶
type ListCommandParser struct{}
func (ListCommandParser) FromParser ¶
func (ListCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type Login ¶
func (Login) SanitizedString ¶
type LoginCommandParser ¶
type LoginCommandParser struct{}
func (LoginCommandParser) FromParser ¶
func (LoginCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type LogoutCommandParser ¶
type LogoutCommandParser struct{}
func (LogoutCommandParser) FromParser ¶
func (LogoutCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type Move ¶
func (Move) SanitizedString ¶
type MoveCommandParser ¶
type MoveCommandParser struct{}
func (MoveCommandParser) FromParser ¶
func (MoveCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type NoopCommandParser ¶
type NoopCommandParser struct{}
func (NoopCommandParser) FromParser ¶
func (NoopCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser parses IMAP Commands.
func (*Parser) ConsumeInvalidInput ¶
ConsumeInvalidInput will consume all remaining scanner input until a new line has been reached.
func (*Parser) LastParsedCommand ¶
func (*Parser) LastParsedTag ¶
type Rename ¶
func (Rename) SanitizedString ¶
type RenameCommandParser ¶
type RenameCommandParser struct{}
func (RenameCommandParser) FromParser ¶
func (RenameCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type Search ¶
func (Search) SanitizedString ¶
type SearchCommandParser ¶
type SearchCommandParser struct{}
func (*SearchCommandParser) FromParser ¶
func (scp *SearchCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type SearchKeyAll ¶
type SearchKeyAll struct{}
func (SearchKeyAll) SanitizedString ¶
func (s SearchKeyAll) SanitizedString() string
func (SearchKeyAll) String ¶
func (s SearchKeyAll) String() string
type SearchKeyAnswered ¶
type SearchKeyAnswered struct{}
func (SearchKeyAnswered) SanitizedString ¶
func (s SearchKeyAnswered) SanitizedString() string
func (SearchKeyAnswered) String ¶
func (s SearchKeyAnswered) String() string
type SearchKeyBCC ¶
type SearchKeyBCC struct {
Value string
}
func (SearchKeyBCC) SanitizedString ¶
func (s SearchKeyBCC) SanitizedString() string
func (SearchKeyBCC) String ¶
func (s SearchKeyBCC) String() string
type SearchKeyBefore ¶
func (SearchKeyBefore) SanitizedString ¶
func (s SearchKeyBefore) SanitizedString() string
func (SearchKeyBefore) String ¶
func (s SearchKeyBefore) String() string
type SearchKeyBody ¶
type SearchKeyBody struct {
Value string
}
func (SearchKeyBody) SanitizedString ¶
func (s SearchKeyBody) SanitizedString() string
func (SearchKeyBody) String ¶
func (s SearchKeyBody) String() string
type SearchKeyCC ¶
type SearchKeyCC struct {
Value string
}
func (SearchKeyCC) SanitizedString ¶
func (s SearchKeyCC) SanitizedString() string
func (SearchKeyCC) String ¶
func (s SearchKeyCC) String() string
type SearchKeyDeleted ¶
type SearchKeyDeleted struct{}
func (SearchKeyDeleted) SanitizedString ¶
func (s SearchKeyDeleted) SanitizedString() string
func (SearchKeyDeleted) String ¶
func (s SearchKeyDeleted) String() string
type SearchKeyDraft ¶
type SearchKeyDraft struct{}
func (SearchKeyDraft) SanitizedString ¶
func (s SearchKeyDraft) SanitizedString() string
func (SearchKeyDraft) String ¶
func (s SearchKeyDraft) String() string
type SearchKeyFlagged ¶
type SearchKeyFlagged struct{}
func (SearchKeyFlagged) SanitizedString ¶
func (s SearchKeyFlagged) SanitizedString() string
func (SearchKeyFlagged) String ¶
func (s SearchKeyFlagged) String() string
type SearchKeyFrom ¶
type SearchKeyFrom struct {
Value string
}
func (SearchKeyFrom) SanitizedString ¶
func (s SearchKeyFrom) SanitizedString() string
func (SearchKeyFrom) String ¶
func (s SearchKeyFrom) String() string
type SearchKeyHeader ¶
func (SearchKeyHeader) SanitizedString ¶
func (s SearchKeyHeader) SanitizedString() string
func (SearchKeyHeader) String ¶
func (s SearchKeyHeader) String() string
type SearchKeyKeyword ¶
type SearchKeyKeyword struct {
Value string
}
func (SearchKeyKeyword) SanitizedString ¶
func (s SearchKeyKeyword) SanitizedString() string
func (SearchKeyKeyword) String ¶
func (s SearchKeyKeyword) String() string
type SearchKeyLarger ¶
type SearchKeyLarger struct {
Value int
}
func (SearchKeyLarger) SanitizedString ¶
func (s SearchKeyLarger) SanitizedString() string
func (SearchKeyLarger) String ¶
func (s SearchKeyLarger) String() string
type SearchKeyList ¶
type SearchKeyList struct {
Keys []SearchKey
}
func (SearchKeyList) SanitizedString ¶
func (s SearchKeyList) SanitizedString() string
func (SearchKeyList) String ¶
func (s SearchKeyList) String() string
type SearchKeyNew ¶
type SearchKeyNew struct{}
func (SearchKeyNew) SanitizedString ¶
func (s SearchKeyNew) SanitizedString() string
func (SearchKeyNew) String ¶
func (s SearchKeyNew) String() string
type SearchKeyNot ¶
type SearchKeyNot struct {
Key SearchKey
}
func (SearchKeyNot) SanitizedString ¶
func (s SearchKeyNot) SanitizedString() string
func (SearchKeyNot) String ¶
func (s SearchKeyNot) String() string
type SearchKeyOld ¶
type SearchKeyOld struct{}
func (SearchKeyOld) SanitizedString ¶
func (s SearchKeyOld) SanitizedString() string
func (SearchKeyOld) String ¶
func (s SearchKeyOld) String() string
type SearchKeyOn ¶
func (SearchKeyOn) SanitizedString ¶
func (s SearchKeyOn) SanitizedString() string
func (SearchKeyOn) String ¶
func (s SearchKeyOn) String() string
type SearchKeyOr ¶
func (SearchKeyOr) SanitizedString ¶
func (s SearchKeyOr) SanitizedString() string
func (SearchKeyOr) String ¶
func (s SearchKeyOr) String() string
type SearchKeyRecent ¶
type SearchKeyRecent struct{}
func (SearchKeyRecent) SanitizedString ¶
func (s SearchKeyRecent) SanitizedString() string
func (SearchKeyRecent) String ¶
func (s SearchKeyRecent) String() string
type SearchKeySeen ¶
type SearchKeySeen struct{}
func (SearchKeySeen) SanitizedString ¶
func (s SearchKeySeen) SanitizedString() string
func (SearchKeySeen) String ¶
func (s SearchKeySeen) String() string
type SearchKeySentBefore ¶
func (SearchKeySentBefore) SanitizedString ¶
func (s SearchKeySentBefore) SanitizedString() string
func (SearchKeySentBefore) String ¶
func (s SearchKeySentBefore) String() string
type SearchKeySentOn ¶
func (SearchKeySentOn) SanitizedString ¶
func (s SearchKeySentOn) SanitizedString() string
func (SearchKeySentOn) String ¶
func (s SearchKeySentOn) String() string
type SearchKeySentSince ¶
func (SearchKeySentSince) SanitizedString ¶
func (s SearchKeySentSince) SanitizedString() string
func (SearchKeySentSince) String ¶
func (s SearchKeySentSince) String() string
type SearchKeySeqSet ¶
type SearchKeySeqSet struct {
SeqSet []SeqRange
}
func (SearchKeySeqSet) SanitizedString ¶
func (s SearchKeySeqSet) SanitizedString() string
func (SearchKeySeqSet) String ¶
func (s SearchKeySeqSet) String() string
type SearchKeySince ¶
func (SearchKeySince) SanitizedString ¶
func (s SearchKeySince) SanitizedString() string
func (SearchKeySince) String ¶
func (s SearchKeySince) String() string
type SearchKeySmaller ¶
type SearchKeySmaller struct {
Value int
}
func (SearchKeySmaller) SanitizedString ¶
func (s SearchKeySmaller) SanitizedString() string
func (SearchKeySmaller) String ¶
func (s SearchKeySmaller) String() string
type SearchKeySubject ¶
type SearchKeySubject struct {
Value string
}
func (SearchKeySubject) SanitizedString ¶
func (s SearchKeySubject) SanitizedString() string
func (SearchKeySubject) String ¶
func (s SearchKeySubject) String() string
type SearchKeyText ¶
type SearchKeyText struct {
Value string
}
func (SearchKeyText) SanitizedString ¶
func (s SearchKeyText) SanitizedString() string
func (SearchKeyText) String ¶
func (s SearchKeyText) String() string
type SearchKeyTo ¶
type SearchKeyTo struct {
Value string
}
func (SearchKeyTo) SanitizedString ¶
func (s SearchKeyTo) SanitizedString() string
func (SearchKeyTo) String ¶
func (s SearchKeyTo) String() string
type SearchKeyUID ¶
type SearchKeyUID struct {
SeqSet []SeqRange
}
func (SearchKeyUID) SanitizedString ¶
func (s SearchKeyUID) SanitizedString() string
func (SearchKeyUID) String ¶
func (s SearchKeyUID) String() string
type SearchKeyUnanswered ¶
type SearchKeyUnanswered struct{}
func (SearchKeyUnanswered) SanitizedString ¶
func (s SearchKeyUnanswered) SanitizedString() string
func (SearchKeyUnanswered) String ¶
func (s SearchKeyUnanswered) String() string
type SearchKeyUndeleted ¶
type SearchKeyUndeleted struct{}
func (SearchKeyUndeleted) SanitizedString ¶
func (s SearchKeyUndeleted) SanitizedString() string
func (SearchKeyUndeleted) String ¶
func (s SearchKeyUndeleted) String() string
type SearchKeyUndraft ¶
type SearchKeyUndraft struct{}
func (SearchKeyUndraft) SanitizedString ¶
func (s SearchKeyUndraft) SanitizedString() string
func (SearchKeyUndraft) String ¶
func (s SearchKeyUndraft) String() string
type SearchKeyUnflagged ¶
type SearchKeyUnflagged struct{}
func (SearchKeyUnflagged) SanitizedString ¶
func (s SearchKeyUnflagged) SanitizedString() string
func (SearchKeyUnflagged) String ¶
func (s SearchKeyUnflagged) String() string
type SearchKeyUnkeyword ¶
type SearchKeyUnkeyword struct {
Value string
}
func (SearchKeyUnkeyword) SanitizedString ¶
func (s SearchKeyUnkeyword) SanitizedString() string
func (SearchKeyUnkeyword) String ¶
func (s SearchKeyUnkeyword) String() string
type SearchKeyUnseen ¶
type SearchKeyUnseen struct{}
func (SearchKeyUnseen) SanitizedString ¶
func (s SearchKeyUnseen) SanitizedString() string
func (SearchKeyUnseen) String ¶
func (s SearchKeyUnseen) String() string
type SelectCommandParser ¶
type SelectCommandParser struct{}
func (SelectCommandParser) FromParser ¶
func (SelectCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type StartTLSCommandParser ¶
type StartTLSCommandParser struct{}
func (StartTLSCommandParser) FromParser ¶
func (StartTLSCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type Status ¶
type Status struct { Mailbox string Attributes []StatusAttribute }
func (Status) SanitizedString ¶
type StatusAttribute ¶
type StatusAttribute int
const ( StatusAttributeMessages StatusAttribute = iota StatusAttributeRecent StatusAttributeUIDNext StatusAttributeUIDValidity StatusAttributeUnseen )
func (StatusAttribute) String ¶
func (s StatusAttribute) String() string
type StatusCommandParser ¶
type StatusCommandParser struct{}
func (StatusCommandParser) FromParser ¶
func (StatusCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type Store ¶
type Store struct { SeqSet []SeqRange Action StoreAction Flags []string Silent bool }
func (Store) SanitizedString ¶
type StoreAction ¶
type StoreAction int
const ( StoreActionAddFlags StoreAction = iota StoreActionRemFlags StoreActionSetFlags )
func (StoreAction) String ¶
func (s StoreAction) String() string
type StoreCommandParser ¶
type StoreCommandParser struct{}
func (StoreCommandParser) FromParser ¶
func (StoreCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type SubscribeCommandParser ¶
type SubscribeCommandParser struct{}
func (SubscribeCommandParser) FromParser ¶
func (SubscribeCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type UIDCommandParser ¶
type UIDCommandParser struct {
// contains filtered or unexported fields
}
func NewUIDCommandParser ¶
func NewUIDCommandParser() *UIDCommandParser
func (*UIDCommandParser) FromParser ¶
func (u *UIDCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type UIDExpunge ¶
type UIDExpunge struct {
SeqSet []SeqRange
}
func (UIDExpunge) SanitizedString ¶
func (l UIDExpunge) SanitizedString() string
func (UIDExpunge) String ¶
func (l UIDExpunge) String() string
type UIDExpungeCommandParser ¶
type UIDExpungeCommandParser struct{}
func (UIDExpungeCommandParser) FromParser ¶
func (UIDExpungeCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type UnselectCommandParser ¶
type UnselectCommandParser struct{}
func (UnselectCommandParser) FromParser ¶
func (UnselectCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
type Unsubscribe ¶
type Unsubscribe struct {
Mailbox string
}
func (Unsubscribe) SanitizedString ¶
func (l Unsubscribe) SanitizedString() string
func (Unsubscribe) String ¶
func (l Unsubscribe) String() string
type UnsubscribeCommandParser ¶
type UnsubscribeCommandParser struct{}
func (UnsubscribeCommandParser) FromParser ¶
func (UnsubscribeCommandParser) FromParser(p *rfcparser.Parser) (Payload, error)
Source Files ¶
- append.go
- capability.go
- check.go
- close.go
- command.go
- copy.go
- create.go
- date_time.go
- delete.go
- done.go
- examine.go
- expunge.go
- fetch.go
- fetch_attributes.go
- flags.go
- id.go
- idle.go
- input_collector.go
- list.go
- login.go
- logout.go
- lsub.go
- mailbox.go
- move.go
- noop.go
- nstring.go
- parser.go
- rename.go
- search.go
- search_keys.go
- select.go
- seq_set.go
- starttls.go
- status.go
- store.go
- subscribe.go
- uid.go
- unselect.go
- unsubscribe.go
Click to show internal directories.
Click to hide internal directories.