Versions in this module Expand all Collapse all v0 v0.0.11 Apr 30, 2024 Changes in this version + const QuotaResourceAnnotationStorage + const QuotaResourceMailbox + const QuotaResourceMesssage + const QuotaResourceStorage + type QuotaResource struct + Limit int64 + Name QuotaResourceName + Usage int64 + type QuotaResourceName string + type StatusAttr string + const StatusAppendLimit + const StatusDeleted + const StatusDeletedStorage + const StatusHighestModSeq + const StatusMessages + const StatusRecent + const StatusSize + const StatusUIDNext + const StatusUIDValidity + const StatusUnseen + type UntaggedQuota struct + Resources []QuotaResource + Root string + type UntaggedQuotaroot []string v0.0.10 Mar 9, 2024 v0.0.9 Jan 9, 2024 Changes in this version type Conn + func (c *Conn) TLSConnectionState() *tls.ConnectionState v0.0.8 Nov 22, 2023 v0.0.7 Sep 24, 2023 v0.0.6 Aug 16, 2023 Changes in this version + type CodeHighestModSeq int64 + func (c CodeHighestModSeq) CodeString() string + type CodeModified NumSet + func (c CodeModified) CodeString() string + type FetchModSeq int64 + func (f FetchModSeq) Attr() string type NumSet + func ParseNumSet(s string) (ns NumSet, rerr error) type UntaggedEsearch + ModSeq int64 + type UntaggedSearchModSeq struct + ModSeq int64 + Nums []uint32 + type UntaggedVanished struct + Earlier bool + UIDs NumSet v0.0.5 Jul 3, 2023 v0.0.4 Jun 4, 2023 v0.0.3 Apr 22, 2023 v0.0.2 Mar 6, 2023 v0.0.1 Feb 17, 2023 Changes in this version + type Address struct + Adl string + Host string + Mailbox string + Name string + type BodyFields struct + CTE string + ContentDescr string + ContentID string + Octets int32 + Params [][2]string + type BodyTypeBasic struct + BodyFields BodyFields + MediaSubtype string + MediaType string + type BodyTypeMpart struct + Bodies []any + MediaSubtype string + type BodyTypeMsg struct + BodyFields BodyFields + Bodystructure any + Envelope Envelope + Lines int64 + MediaSubtype string + MediaType string + type BodyTypeText struct + BodyFields BodyFields + Lines int64 + MediaSubtype string + MediaType string + type Capability string + const CapAuthPlain + const CapBinary + const CapEnable + const CapEsearch + const CapID + const CapIMAP4rev1 + const CapIMAP4rev2 + const CapIdle + const CapListExtended + const CapLiteralMinus + const CapLiteralPlus + const CapLoginDisabled + const CapMove + const CapNamespace + const CapSave + const CapSpecialUse + const CapStarttls + const CapUTF8Accept + const CapUTF8Only + const CapUidplus + const CapUnselect + type CodeAppendUID struct + UID uint32 + UIDValidity uint32 + func (c CodeAppendUID) CodeString() string + type CodeArg interface + CodeString func() string + type CodeCopyUID struct + DestUIDValidity uint32 + From []NumRange + To []NumRange + func (c CodeCopyUID) CodeString() string + type CodeList struct + Args []string + Code string + func (c CodeList) CodeString() string + type CodeOther struct + Args []string + Code string + func (c CodeOther) CodeString() string + type CodeUint struct + Code string + Num uint32 + func (c CodeUint) CodeString() string + type CodeWords struct + Args []string + Code string + func (c CodeWords) CodeString() string + type Conn struct + CapAvailable map[Capability]struct{} + CapEnabled map[Capability]struct{} + LastTag string + func New(conn net.Conn, xpanic bool) (client *Conn, rerr error) + func (c *Conn) Append(mailbox string, flags []string, received *time.Time, message []byte) (untagged []Untagged, result Result, rerr error) + func (c *Conn) AuthenticatePlain(username, password string) (untagged []Untagged, result Result, rerr error) + func (c *Conn) AuthenticateSCRAM(method string, h func() hash.Hash, username, password string) (untagged []Untagged, result Result, rerr error) + func (c *Conn) Capability() (untagged []Untagged, result Result, rerr error) + func (c *Conn) Close() error + func (c *Conn) CloseMailbox() (untagged []Untagged, result Result, rerr error) + func (c *Conn) Commandf(tag string, format string, args ...any) (rerr error) + func (c *Conn) Copy(seqSet NumSet, dstMailbox string) (untagged []Untagged, result Result, rerr error) + func (c *Conn) Create(mailbox string) (untagged []Untagged, result Result, rerr error) + func (c *Conn) Delete(mailbox string) (untagged []Untagged, result Result, rerr error) + func (c *Conn) Enable(capabilities ...string) (untagged []Untagged, result Result, rerr error) + func (c *Conn) Examine(mailbox string) (untagged []Untagged, result Result, rerr error) + func (c *Conn) Expunge() (untagged []Untagged, result Result, rerr error) + func (c *Conn) List(pattern string) (untagged []Untagged, result Result, rerr error) + func (c *Conn) ListFull(subscribedOnly bool, patterns ...string) (untagged []Untagged, result Result, rerr error) + func (c *Conn) Login(username, password string) (untagged []Untagged, result Result, rerr error) + func (c *Conn) Logout() (untagged []Untagged, result Result, rerr error) + func (c *Conn) Move(seqSet NumSet, dstMailbox string) (untagged []Untagged, result Result, rerr error) + func (c *Conn) Namespace() (untagged []Untagged, result Result, rerr error) + func (c *Conn) Noop() (untagged []Untagged, result Result, rerr error) + func (c *Conn) ReadContinuation() (line string, untagged []Untagged, result Result, rerr error) + func (c *Conn) ReadUntagged() (untagged Untagged, rerr error) + func (c *Conn) Readline() (line string, rerr error) + func (c *Conn) Rename(omailbox, nmailbox string) (untagged []Untagged, result Result, rerr error) + func (c *Conn) Response() (untagged []Untagged, result Result, rerr error) + func (c *Conn) ResponseOK() (untagged []Untagged, result Result, rerr error) + func (c *Conn) Select(mailbox string) (untagged []Untagged, result Result, rerr error) + func (c *Conn) Starttls(config *tls.Config) (untagged []Untagged, result Result, rerr error) + func (c *Conn) Status(mailbox string) (untagged []Untagged, result Result, rerr error) + func (c *Conn) StoreFlagsAdd(seqset string, silent bool, flags ...string) (untagged []Untagged, result Result, rerr error) + func (c *Conn) StoreFlagsClear(seqset string, silent bool, flags ...string) (untagged []Untagged, result Result, rerr error) + func (c *Conn) StoreFlagsSet(seqset string, silent bool, flags ...string) (untagged []Untagged, result Result, rerr error) + func (c *Conn) Subscribe(mailbox string) (untagged []Untagged, result Result, rerr error) + func (c *Conn) Transactf(format string, args ...any) (untagged []Untagged, result Result, rerr error) + func (c *Conn) UIDCopy(uidSet NumSet, dstMailbox string) (untagged []Untagged, result Result, rerr error) + func (c *Conn) UIDExpunge(uidSet NumSet) (untagged []Untagged, result Result, rerr error) + func (c *Conn) UIDMove(uidSet NumSet, dstMailbox string) (untagged []Untagged, result Result, rerr error) + func (c *Conn) Unselect() (untagged []Untagged, result Result, rerr error) + func (c *Conn) Unsubscribe(mailbox string) (untagged []Untagged, result Result, rerr error) + func (c *Conn) Write(buf []byte) (n int, rerr error) + func (c *Conn) WriteSyncLiteral(s string) (rerr error) + func (c *Conn) Writelinef(format string, args ...any) (rerr error) + type Envelope struct + BCC []Address + CC []Address + Date string + From []Address + InReplyTo string + MessageID string + ReplyTo []Address + Sender []Address + Subject string + To []Address + type Error struct + func (e Error) Error() string + func (e Error) Unwrap() error + type EsearchDataExt struct + Tag string + Value TaggedExtVal + type FetchAttr interface + Attr func() string + type FetchBinary struct + Data string + Parts []uint32 + RespAttr string + func (f FetchBinary) Attr() string + type FetchBinarySize struct + Parts []uint32 + RespAttr string + Size int64 + func (f FetchBinarySize) Attr() string + type FetchBody struct + Body string + Offset int32 + RespAttr string + Section string + func (f FetchBody) Attr() string + type FetchBodystructure struct + Body any + RespAttr string + func (f FetchBodystructure) Attr() string + type FetchEnvelope Envelope + func (f FetchEnvelope) Attr() string + type FetchFlags []string + func (f FetchFlags) Attr() string + type FetchInternalDate string + func (f FetchInternalDate) Attr() string + type FetchRFC822 string + func (f FetchRFC822) Attr() string + type FetchRFC822Header string + func (f FetchRFC822Header) Attr() string + type FetchRFC822Size int64 + func (f FetchRFC822Size) Attr() string + type FetchRFC822Text string + func (f FetchRFC822Text) Attr() string + type FetchUID uint32 + func (f FetchUID) Attr() string + type MboxListExtendedItem struct + Tag string + Val TaggedExtVal + type NamespaceDescr struct + Exts []NamespaceExtension + Prefix string + Separator byte + type NamespaceExtension struct + Key string + Values []string + type NumRange struct + First uint32 + Last *uint32 + func (nr NumRange) String() string + type NumSet struct + Ranges []NumRange + SearchResult bool + func (ns NumSet) IsZero() bool + func (ns NumSet) String() string + type RespText struct + Code string + CodeArg CodeArg + More string + type Result struct + Status Status + type Status string + const BAD + const NO + const OK + type TaggedExtComp struct + Comps []TaggedExtComp + String string + type TaggedExtVal struct + Comp *TaggedExtComp + Number *int64 + SeqSet *NumSet + type Untagged any + type UntaggedBye RespText + type UntaggedCapability []string + type UntaggedEnabled []string + type UntaggedEsearch struct + All NumSet + Correlator string + Count *uint32 + Exts []EsearchDataExt + Max uint32 + Min uint32 + UID bool + type UntaggedExists uint32 + type UntaggedExpunge uint32 + type UntaggedFetch struct + Attrs []FetchAttr + Seq uint32 + type UntaggedFlags []string + type UntaggedID map[string]string + type UntaggedList struct + Extended []MboxListExtendedItem + Flags []string + Mailbox string + OldName string + Separator byte + type UntaggedLsub struct + Flags []string + Mailbox string + Separator byte + type UntaggedNamespace struct + Other []NamespaceDescr + Personal []NamespaceDescr + Shared []NamespaceDescr + type UntaggedPreauth RespText + type UntaggedRecent uint32 + type UntaggedResult Result + type UntaggedSearch []uint32 + type UntaggedStatus struct + Attrs map[string]int64 + Mailbox string