Versions in this module Expand all Collapse all v2 v2.0.1 Mar 22, 2024 Changes in this version + func IsAtomChar(ch byte) bool + func ParseSeqSet(s string) (imap.SeqSet, error) + type ConnSide int + const ConnSideClient + const ConnSideServer + type ContinuationRequest struct + func NewContinuationRequest() *ContinuationRequest + func (cont *ContinuationRequest) Cancel(err error) + func (cont *ContinuationRequest) Done(text string) + func (cont *ContinuationRequest) Wait() (string, error) + type Decoder struct + CheckBufferedLiteralFunc func(size int64, nonSync bool) error + func NewDecoder(r *bufio.Reader, side ConnSide) *Decoder + func (dec *Decoder) Atom(ptr *string) bool + func (dec *Decoder) CRLF() bool + func (dec *Decoder) DiscardLine() + func (dec *Decoder) DiscardUntilByte(untilCh byte) + func (dec *Decoder) DiscardValue() bool + func (dec *Decoder) EOF() bool + func (dec *Decoder) Err() error + func (dec *Decoder) Expect(ok bool, name string) bool + func (dec *Decoder) ExpectAString(ptr *string) bool + func (dec *Decoder) ExpectAtom(ptr *string) bool + func (dec *Decoder) ExpectBodyFldOctets(ptr *uint32) bool + func (dec *Decoder) ExpectCRLF() bool + func (dec *Decoder) ExpectList(f func() error) error + func (dec *Decoder) ExpectLiteralReader() (lit *LiteralReader, nonSync bool, err error) + func (dec *Decoder) ExpectMailbox(ptr *string) bool + func (dec *Decoder) ExpectModSeq(ptr *uint64) bool + func (dec *Decoder) ExpectNIL() bool + func (dec *Decoder) ExpectNList(f func() error) error + func (dec *Decoder) ExpectNString(ptr *string) bool + func (dec *Decoder) ExpectNStringReader() (lit *LiteralReader, nonSync, ok bool) + func (dec *Decoder) ExpectNumSet(kind NumKind, ptr *imap.NumSet) bool + func (dec *Decoder) ExpectNumber(ptr *uint32) bool + func (dec *Decoder) ExpectNumber64(ptr *int64) bool + func (dec *Decoder) ExpectSP() bool + func (dec *Decoder) ExpectSpecial(b byte) bool + func (dec *Decoder) ExpectString(ptr *string) bool + func (dec *Decoder) ExpectText(ptr *string) bool + func (dec *Decoder) ExpectUID(ptr *imap.UID) bool + func (dec *Decoder) ExpectUIDSet(ptr *imap.UIDSet) bool + func (dec *Decoder) Func(ptr *string, valid func(ch byte) bool) bool + func (dec *Decoder) List(f func() error) (isList bool, err error) + func (dec *Decoder) Literal(ptr *string) bool + func (dec *Decoder) LiteralReader() (lit *LiteralReader, nonSync, ok bool) + func (dec *Decoder) ModSeq(ptr *uint64) bool + func (dec *Decoder) Number(ptr *uint32) bool + func (dec *Decoder) Number64(ptr *int64) bool + func (dec *Decoder) Quoted(ptr *string) bool + func (dec *Decoder) SP() bool + func (dec *Decoder) Special(b byte) bool + func (dec *Decoder) String(ptr *string) bool + func (dec *Decoder) Text(ptr *string) bool + type DecoderExpectError struct + Message string + func (err *DecoderExpectError) Error() string + type Encoder struct + LiteralMinus bool + LiteralPlus bool + NewContinuationRequest func() *ContinuationRequest + QuotedUTF8 bool + func NewEncoder(w *bufio.Writer, side ConnSide) *Encoder + func (enc *Encoder) Atom(s string) *Encoder + func (enc *Encoder) BeginList() *ListEncoder + func (enc *Encoder) CRLF() error + func (enc *Encoder) Flag(flag imap.Flag) *Encoder + func (enc *Encoder) List(n int, f func(i int)) *Encoder + func (enc *Encoder) Literal(size int64, sync *ContinuationRequest) io.WriteCloser + func (enc *Encoder) Mailbox(name string) *Encoder + func (enc *Encoder) MailboxAttr(attr imap.MailboxAttr) *Encoder + func (enc *Encoder) ModSeq(v uint64) *Encoder + func (enc *Encoder) NIL() *Encoder + func (enc *Encoder) NumSet(numSet imap.NumSet) *Encoder + func (enc *Encoder) Number(v uint32) *Encoder + func (enc *Encoder) Number64(v int64) *Encoder + func (enc *Encoder) Quoted(s string) *Encoder + func (enc *Encoder) SP() *Encoder + func (enc *Encoder) Special(ch byte) *Encoder + func (enc *Encoder) String(s string) *Encoder + func (enc *Encoder) Text(s string) *Encoder + func (enc *Encoder) UID(uid imap.UID) *Encoder + type ListEncoder struct + func (le *ListEncoder) End() + func (le *ListEncoder) Item() *Encoder + type LiteralReader struct + func (lit *LiteralReader) Read(b []byte) (int, error) + func (lit *LiteralReader) Size() int64 + type NumKind int + const NumKindSeq + const NumKindUID + func NumSetKind(numSet imap.NumSet) NumKind