Versions in this module Expand all Collapse all v2 v2.0.1 Mar 22, 2024 Changes in this version + func IsSearchRes(numSet NumSet) bool + type Address struct + Host string + Mailbox string + Name string + func (addr *Address) Addr() string + func (addr *Address) IsGroupEnd() bool + func (addr *Address) IsGroupStart() bool + type AppendData struct + UID UID + UIDValidity uint32 + type AppendOptions struct + Flags []Flag + Time time.Time + type BodyStructure interface + Disposition func() *BodyStructureDisposition + MediaType func() string + Walk func(f BodyStructureWalkFunc) + type BodyStructureDisposition struct + Params map[string]string + Value string + type BodyStructureMessageRFC822 struct + BodyStructure BodyStructure + Envelope *Envelope + NumLines int64 + type BodyStructureMultiPart struct + Children []BodyStructure + Extended *BodyStructureMultiPartExt + Subtype string + func (bs *BodyStructureMultiPart) Disposition() *BodyStructureDisposition + func (bs *BodyStructureMultiPart) MediaType() string + func (bs *BodyStructureMultiPart) Walk(f BodyStructureWalkFunc) + type BodyStructureMultiPartExt struct + Disposition *BodyStructureDisposition + Language []string + Location string + Params map[string]string + type BodyStructureSinglePart struct + Description string + Encoding string + Extended *BodyStructureSinglePartExt + ID string + MessageRFC822 *BodyStructureMessageRFC822 + Params map[string]string + Size uint32 + Subtype string + Text *BodyStructureText + Type string + func (bs *BodyStructureSinglePart) Disposition() *BodyStructureDisposition + func (bs *BodyStructureSinglePart) Filename() string + func (bs *BodyStructureSinglePart) MediaType() string + func (bs *BodyStructureSinglePart) Walk(f BodyStructureWalkFunc) + type BodyStructureSinglePartExt struct + Disposition *BodyStructureDisposition + Language []string + Location string + type BodyStructureText struct + NumLines int64 + type BodyStructureWalkFunc func(path []int, part BodyStructure) (walkChildren bool) + type Cap string + const CapACL + const CapAppendLimit + const CapAuthPlain + const CapBinary + const CapCatenate + const CapChildren + const CapCondStore + const CapConvert + const CapCreateSpecialUse + const CapESearch + const CapESort + const CapEnable + const CapFilters + const CapID + const CapIMAP4rev1 + const CapIMAP4rev2 + const CapIdle + const CapLanguage + const CapListExtended + const CapListMyRights + const CapListStatus + const CapLiteralMinus + const CapLiteralPlus + const CapLoginDisabled + const CapLoginReferrals + const CapMailboxReferrals + const CapMetadata + const CapMetadataServer + const CapMove + const CapMultiAppend + const CapMultiSearch + const CapNamespace + const CapNotify + const CapObjectID + const CapPreview + const CapQResync + const CapQuota + const CapQuotaSet + const CapReplace + const CapSASLIR + const CapSaveDate + const CapSearchFuzzy + const CapSearchRes + const CapSort + const CapSortDisplay + const CapSpecialUse + const CapStartTLS + const CapStatusSize + const CapUIDPlus + const CapURLAuth + const CapURLPartial + const CapUTF8Accept + const CapUTF8Only + const CapUnauthenticate + const CapUnselect + const CapWithin + func AuthCap(mechanism string) Cap + type CapSet map[Cap]struct + func (set CapSet) AppendLimit() (limit *uint32, ok bool) + func (set CapSet) AuthMechanisms() []string + func (set CapSet) Has(c Cap) bool + func (set CapSet) QuotaResourceTypes() []QuotaResourceType + func (set CapSet) ThreadAlgorithms() []ThreadAlgorithm + type ConnState int + const ConnStateAuthenticated + const ConnStateLogout + const ConnStateNone + const ConnStateNotAuthenticated + const ConnStateSelected + func (state ConnState) String() string + type CopyData struct + DestUIDs UIDSet + SourceUIDs UIDSet + UIDValidity uint32 + type CreateOptions struct + SpecialUse []MailboxAttr + type Envelope struct + Bcc []Address + Cc []Address + Date time.Time + From []Address + InReplyTo []string + MessageID string + ReplyTo []Address + Sender []Address + Subject string + To []Address + type Error StatusResponse + func (err *Error) Error() string + type FetchItemBinarySection struct + Part []int + Partial *SectionPartial + Peek bool + type FetchItemBinarySectionSize struct + Part []int + type FetchItemBodySection struct + HeaderFields []string + HeaderFieldsNot []string + Part []int + Partial *SectionPartial + Peek bool + Specifier PartSpecifier + type FetchItemBodyStructure struct + Extended bool + type FetchOptions struct + BinarySection []*FetchItemBinarySection + BinarySectionSize []*FetchItemBinarySectionSize + BodySection []*FetchItemBodySection + BodyStructure *FetchItemBodyStructure + ChangedSince uint64 + Envelope bool + Flags bool + InternalDate bool + ModSeq bool + RFC822Size bool + UID bool + type Flag string + const FlagAnswered + const FlagDeleted + const FlagDraft + const FlagFlagged + const FlagForwarded + const FlagImportant + const FlagJunk + const FlagMDNSent + const FlagNotJunk + const FlagPhishing + const FlagSeen + const FlagWildcard + type ListData struct + Attrs []MailboxAttr + ChildInfo *ListDataChildInfo + Delim rune + Mailbox string + OldName string + Status *StatusData + type ListDataChildInfo struct + Subscribed bool + type ListOptions struct + ReturnChildren bool + ReturnSpecialUse bool + ReturnStatus *StatusOptions + ReturnSubscribed bool + SelectRecursiveMatch bool + SelectRemote bool + SelectSpecialUse bool + SelectSubscribed bool + type LiteralReader interface + Size func() int64 + type MailboxAttr string + const MailboxAttrAll + const MailboxAttrArchive + const MailboxAttrDrafts + const MailboxAttrFlagged + const MailboxAttrHasChildren + const MailboxAttrHasNoChildren + const MailboxAttrImportant + const MailboxAttrJunk + const MailboxAttrMarked + const MailboxAttrNoInferiors + const MailboxAttrNoSelect + const MailboxAttrNonExistent + const MailboxAttrRemote + const MailboxAttrSent + const MailboxAttrSubscribed + const MailboxAttrTrash + const MailboxAttrUnmarked + type NamespaceData struct + Other []NamespaceDescriptor + Personal []NamespaceDescriptor + Shared []NamespaceDescriptor + type NamespaceDescriptor struct + Delim rune + Prefix string + type NumSet interface + Dynamic func() bool + String func() string + type PartSpecifier string + const PartSpecifierHeader + const PartSpecifierMIME + const PartSpecifierNone + const PartSpecifierText + type QuotaResourceType string + const QuotaResourceAnnotationStorage + const QuotaResourceMailbox + const QuotaResourceMessage + const QuotaResourceStorage + type ResponseCode string + const ResponseCodeAlert + const ResponseCodeAlreadyExists + const ResponseCodeAuthenticationFailed + const ResponseCodeAuthorizationFailed + const ResponseCodeBadCharset + const ResponseCodeCannot + const ResponseCodeClientBug + const ResponseCodeContactAdmin + const ResponseCodeCorruption + const ResponseCodeExpired + const ResponseCodeHasChildren + const ResponseCodeInUse + const ResponseCodeLimit + const ResponseCodeNoPerm + const ResponseCodeNoPrivate + const ResponseCodeNonExistent + const ResponseCodeOverQuota + const ResponseCodeParse + const ResponseCodePrivacyRequired + const ResponseCodeServerBug + const ResponseCodeTooBig + const ResponseCodeTooMany + const ResponseCodeTryCreate + const ResponseCodeUnavailable + const ResponseCodeUnknownCTE + type SearchCriteria struct + Before time.Time + Body []string + Flag []Flag + Header []SearchCriteriaHeaderField + Larger int64 + ModSeq *SearchCriteriaModSeq + Not []SearchCriteria + NotFlag []Flag + Or [][2]SearchCriteria + SentBefore time.Time + SentSince time.Time + SeqNum []SeqSet + Since time.Time + Smaller int64 + Text []string + UID []UIDSet + func (criteria *SearchCriteria) And(other *SearchCriteria) + type SearchCriteriaHeaderField struct + Key string + Value string + type SearchCriteriaMetadataType string + const SearchCriteriaMetadataAll + const SearchCriteriaMetadataPrivate + const SearchCriteriaMetadataShared + type SearchCriteriaModSeq struct + MetadataName string + MetadataType SearchCriteriaMetadataType + ModSeq uint64 + type SearchData struct + All NumSet + Count uint32 + Max uint32 + Min uint32 + ModSeq uint64 + UID bool + func (data *SearchData) AllSeqNums() []uint32 + func (data *SearchData) AllUIDs() []UID + type SearchOptions struct + ReturnAll bool + ReturnCount bool + ReturnMax bool + ReturnMin bool + ReturnSave bool + type SectionPartial struct + Offset int64 + Size int64 + type SelectData struct + Flags []Flag + HighestModSeq uint64 + List *ListData + NumMessages uint32 + PermanentFlags []Flag + UIDNext UID + UIDValidity uint32 + type SelectOptions struct + CondStore bool + ReadOnly bool + type SeqRange struct + Start uint32 + Stop uint32 + type SeqSet []SeqRange + func SeqSetNum(nums ...uint32) SeqSet + func (s *SeqSet) AddNum(nums ...uint32) + func (s *SeqSet) AddRange(start, stop uint32) + func (s *SeqSet) AddSet(other SeqSet) + func (s *SeqSet) Contains(num uint32) bool + func (s *SeqSet) Nums() ([]uint32, bool) + func (s SeqSet) Dynamic() bool + func (s SeqSet) String() string + type StatusData struct + AppendLimit *uint32 + DeletedStorage *int64 + HighestModSeq uint64 + Mailbox string + NumDeleted *uint32 + NumMessages *uint32 + NumUnseen *uint32 + Size *int64 + UIDNext UID + UIDValidity uint32 + type StatusOptions struct + AppendLimit bool + DeletedStorage bool + HighestModSeq bool + NumDeleted bool + NumMessages bool + NumUnseen bool + Size bool + UIDNext bool + UIDValidity bool + type StatusResponse struct + Code ResponseCode + Text string + Type StatusResponseType + type StatusResponseType string + const StatusResponseTypeBad + const StatusResponseTypeBye + const StatusResponseTypeNo + const StatusResponseTypeOK + const StatusResponseTypePreAuth + type StoreFlags struct + Flags []Flag + Op StoreFlagsOp + Silent bool + type StoreFlagsOp int + const StoreFlagsAdd + const StoreFlagsDel + const StoreFlagsSet + type StoreOptions struct + UnchangedSince uint64 + type ThreadAlgorithm string + const ThreadOrderedSubject + const ThreadReferences + type UID uint32 + type UIDRange struct + Start UID + Stop UID + type UIDSet []UIDRange + func SearchRes() UIDSet + func UIDSetNum(uids ...UID) UIDSet + func (s *UIDSet) AddNum(uids ...UID) + func (s *UIDSet) AddRange(start, stop UID) + func (s *UIDSet) AddSet(other UIDSet) + func (s UIDSet) Contains(uid UID) bool + func (s UIDSet) Dynamic() bool + func (s UIDSet) Nums() ([]UID, bool) + func (s UIDSet) String() string