Versions in this module Expand all Collapse all v1 v1.0.7 Nov 14, 2020 Changes in this version + const AddFlags + const AllAttr + const AnsweredFlag + const ArchiveAttr + const AuthenticatedState + const ConnectedState + const ConnectingState + const DateLayout + const DateTimeLayout + const DeletedFlag + const DraftFlag + const DraftsAttr + const EntireSpecifier + const FlaggedAttr + const FlaggedFlag + const HasChildrenAttr + const HasNoChildrenAttr + const HeaderSpecifier + const ImportantAttr + const ImportantFlag + const InboxName + const JunkAttr + const LogoutState + const MIMESpecifier + const MarkedAttr + const NoInferiorsAttr + const NoSelectAttr + const NotAuthenticatedState + const RecentFlag + const RemoveFlags + const SeenFlag + const SelectedState + const SentAttr + const SetFlags + const TextSpecifier + const TrashAttr + const TryCreateFlag + const UnmarkedAttr + var CharsetReader func(charset string, r io.Reader) (io.Reader, error) + func CanonicalFlag(flag string) string + func CanonicalMailboxName(name string) string + func FormatAddressList(addrs []*Address) interface + func FormatMailboxName(name string) interface + func FormatParamList(params map[string]string) []interface + func FormatStringList(list []string) (fields []interface{}) + func IsParseError(err error) bool + func NewDebugWriter(local, remote io.Writer) io.Writer + func NewLockedWriter(w io.Writer) io.Writer + func ParseNamedResp(resp Resp) (name string, fields []interface{}, ok bool) + func ParseNumber(f interface{}) (uint32, error) + func ParseParamList(fields []interface{}) (map[string]string, error) + func ParseString(f interface{}) (string, error) + func ParseStringList(f interface{}) ([]string, error) + type Address struct + AtDomainList string + HostName string + MailboxName string + PersonalName string + func ParseAddressList(fields []interface{}) (addrs []*Address) + func (addr *Address) Address() string + func (addr *Address) Format() []interface{} + func (addr *Address) Parse(fields []interface{}) error + type BodyPartName struct + Fields []string + NotFields bool + Path []int + Specifier PartSpecifier + func (part *BodyPartName) Equal(other *BodyPartName) bool + type BodySectionName struct + Partial []int + Peek bool + func ParseBodySectionName(s FetchItem) (*BodySectionName, error) + func (section *BodySectionName) Equal(other *BodySectionName) bool + func (section *BodySectionName) ExtractPartial(b []byte) []byte + func (section *BodySectionName) FetchItem() FetchItem + type BodyStructure struct + BodyStructure *BodyStructure + Description string + Disposition string + DispositionParams map[string]string + Encoding string + Envelope *Envelope + Extended bool + Id string + Language []string + Lines uint32 + Location []string + MD5 string + MIMESubType string + MIMEType string + Params map[string]string + Parts []*BodyStructure + Size uint32 + func (bs *BodyStructure) Filename() (string, error) + func (bs *BodyStructure) Format() (fields []interface{}) + func (bs *BodyStructure) Parse(fields []interface{}) error + func (bs *BodyStructure) Walk(f BodyStructureWalkFunc) + type BodyStructureWalkFunc func(path []int, part *BodyStructure) (walkChildren bool) + type Command struct + Arguments []interface{} + Name string + Tag string + func (cmd *Command) Command() *Command + func (cmd *Command) Parse(fields []interface{}) error + func (cmd *Command) WriteTo(w *Writer) error + type Commander interface + Command func() *Command + type Conn struct + func NewConn(conn net.Conn, r *Reader, w *Writer) *Conn + func (c *Conn) Flush() error + func (c *Conn) Info() *ConnInfo + func (c *Conn) SetDebug(w io.Writer) + func (c *Conn) Upgrade(upgrader ConnUpgrader) error + func (c *Conn) Wait() + func (c *Conn) WaitReady() + func (c *Conn) Write(b []byte) (n int, err error) + type ConnInfo struct + LocalAddr net.Addr + RemoteAddr net.Addr + TLS *tls.ConnectionState + type ConnState int + type ConnUpgrader func(conn net.Conn) (net.Conn, error) + type ContinuationReq struct + Info string + func (r *ContinuationReq) WriteTo(w *Writer) error + type DataResp struct + Fields []interface{} + Tag string + func NewUntaggedResp(fields []interface{}) *DataResp + func (r *DataResp) WriteTo(w *Writer) error + type Date time.Time + type DateTime time.Time + type Envelope struct + Bcc []*Address + Cc []*Address + Date time.Time + From []*Address + InReplyTo string + MessageId string + ReplyTo []*Address + Sender []*Address + Subject string + To []*Address + func (e *Envelope) Format() (fields []interface{}) + func (e *Envelope) Parse(fields []interface{}) error + type ErrBadSeqSet string + func (err ErrBadSeqSet) Error() string + type ErrStatusResp struct + Resp *StatusResp + func (err *ErrStatusResp) Error() string + type FetchItem string + const FetchAll + const FetchBody + const FetchBodyStructure + const FetchEnvelope + const FetchFast + const FetchFlags + const FetchFull + const FetchInternalDate + const FetchRFC822 + const FetchRFC822Header + const FetchRFC822Size + const FetchRFC822Text + const FetchUid + func (item FetchItem) Expand() []FetchItem + type FlagsOp string + func ParseFlagsOp(item StoreItem) (op FlagsOp, silent bool, err error) + type Literal interface + Len func() int + type LiteralLengthErr struct + Actual int + Expected int + func (e LiteralLengthErr) Error() string + type LockedWriter struct + func (w *LockedWriter) Write(b []byte) (int, error) + type Logger interface + Printf func(format string, v ...interface{}) + Println func(v ...interface{}) + type MailboxInfo struct + Attributes []string + Delimiter string + Name string + func (info *MailboxInfo) Format() []interface{} + func (info *MailboxInfo) Match(reference, pattern string) bool + func (info *MailboxInfo) Parse(fields []interface{}) error + type MailboxStatus struct + Flags []string + Items map[StatusItem]interface{} + ItemsLocker sync.Mutex + Messages uint32 + Name string + PermanentFlags []string + ReadOnly bool + Recent uint32 + UidNext uint32 + UidValidity uint32 + Unseen uint32 + UnseenSeqNum uint32 + func NewMailboxStatus(name string, items []StatusItem) *MailboxStatus + func (status *MailboxStatus) Format() []interface{} + func (status *MailboxStatus) Parse(fields []interface{}) error + type Message struct + Body map[*BodySectionName]Literal + BodyStructure *BodyStructure + Envelope *Envelope + Flags []string + InternalDate time.Time + Items map[FetchItem]interface{} + SeqNum uint32 + Size uint32 + Uid uint32 + func NewMessage(seqNum uint32, items []FetchItem) *Message + func (m *Message) Format() []interface{} + func (m *Message) GetBody(section *BodySectionName) Literal + func (m *Message) Parse(fields []interface{}) error + type Parser interface + Parse func(fields []interface{}) error + type PartSpecifier string + type RawString string + type Reader struct + MaxLiteralSize uint32 + func NewReader(r reader) *Reader + func NewServerReader(r reader, continues chan<- bool) *Reader + func (r *Reader) ReadAtom() (interface{}, error) + func (r *Reader) ReadCrlf() (err error) + func (r *Reader) ReadFields() (fields []interface{}, err error) + func (r *Reader) ReadInfo() (info string, err error) + func (r *Reader) ReadLine() (fields []interface{}, err error) + func (r *Reader) ReadList() (fields []interface{}, err error) + func (r *Reader) ReadLiteral() (Literal, error) + func (r *Reader) ReadQuotedString() (string, error) + func (r *Reader) ReadRespCode() (code StatusRespCode, fields []interface{}, err error) + func (r *Reader) ReadSp() error + type Resp interface + func ReadResp(r *Reader) (Resp, error) + type SearchCriteria struct + Before time.Time + Body []string + Header textproto.MIMEHeader + Larger uint32 + Not []*SearchCriteria + Or [][2]*SearchCriteria + SentBefore time.Time + SentSince time.Time + SeqNum *SeqSet + Since time.Time + Smaller uint32 + Text []string + Uid *SeqSet + WithFlags []string + WithoutFlags []string + func NewSearchCriteria() *SearchCriteria + func (c *SearchCriteria) Format() []interface{} + func (c *SearchCriteria) ParseWithCharset(fields []interface{}, charsetReader func(io.Reader) io.Reader) error + type Seq struct + Start uint32 + Stop uint32 + func (s Seq) Contains(q uint32) bool + func (s Seq) Less(q uint32) bool + func (s Seq) Merge(t Seq) (union Seq, ok bool) + func (s Seq) String() string + type SeqSet struct + Set []Seq + func ParseSeqSet(set string) (s *SeqSet, err error) + func (s *SeqSet) Add(set string) error + func (s *SeqSet) AddNum(q ...uint32) + func (s *SeqSet) AddRange(Start, Stop uint32) + func (s *SeqSet) AddSet(t *SeqSet) + func (s *SeqSet) Clear() + func (s SeqSet) Contains(q uint32) bool + func (s SeqSet) Dynamic() bool + func (s SeqSet) Empty() bool + func (s SeqSet) String() string + type StatusItem string + const StatusMessages + const StatusRecent + const StatusUidNext + const StatusUidValidity + const StatusUnseen + type StatusResp struct + Arguments []interface{} + Code StatusRespCode + Info string + Tag string + Type StatusRespType + func (r *StatusResp) Err() error + func (r *StatusResp) WriteTo(w *Writer) error + type StatusRespCode string + const CodeAlert + const CodeBadCharset + const CodeCapability + const CodeParse + const CodePermanentFlags + const CodeReadOnly + const CodeReadWrite + const CodeTryCreate + const CodeUidNext + const CodeUidValidity + const CodeUnseen + type StatusRespType string + const StatusRespBad + const StatusRespBye + const StatusRespNo + const StatusRespOk + const StatusRespPreauth + type StoreItem string + func FormatFlagsOp(op FlagsOp, silent bool) StoreItem + type StringReader interface + ReadString func(delim byte) (line string, err error) + type Waiter struct + func NewWaiter() *Waiter + func (w *Waiter) Close() + func (w *Waiter) Wait() + func (w *Waiter) WaitReady() + type Writer struct + AllowAsyncLiterals bool + func NewClientWriter(w io.Writer, continues <-chan bool) *Writer + func NewWriter(w io.Writer) *Writer + func (w *Writer) Flush() error + type WriterTo interface + WriteTo func(w *Writer) error v1.0.0-beta.1 Feb 16, 2018