Versions in this module Expand all Collapse all v2 v2.1.0 Mar 15, 2024 Changes in this version + type AppendCommand struct + func (cmd *AppendCommand) Close() error + func (cmd *AppendCommand) Wait() (*imap.AppendData, error) + func (cmd *AppendCommand) Write(b []byte) (int, error) + type CapabilityCommand struct + func (cmd *CapabilityCommand) Wait() (imap.CapSet, error) + type Client struct + func DialStartTLS(address string, options *Options) (*Client, error) + func DialTLS(address string, options *Options) (*Client, error) + func New(conn net.Conn, options *Options) *Client + func NewStartTLS(conn net.Conn, options *Options) (*Client, error) + func (c *Client) Append(mailbox string, size int64, options *imap.AppendOptions) *AppendCommand + func (c *Client) Authenticate(saslClient sasl.Client) error + func (c *Client) Capability() *CapabilityCommand + func (c *Client) Caps() imap.CapSet + func (c *Client) Close() error + func (c *Client) Copy(numSet imap.NumSet, mailbox string) *CopyCommand + func (c *Client) Create(mailbox string, options *imap.CreateOptions) *Command + func (c *Client) Delete(mailbox string) *Command + func (c *Client) Enable(caps ...imap.Cap) *EnableCommand + func (c *Client) Expunge() *ExpungeCommand + func (c *Client) Fetch(numSet imap.NumSet, options *imap.FetchOptions) *FetchCommand + func (c *Client) GetMetadata(mailbox string, entries []string, options *GetMetadataOptions) *GetMetadataCommand + func (c *Client) GetQuota(root string) *GetQuotaCommand + func (c *Client) GetQuotaRoot(mailbox string) *GetQuotaRootCommand + func (c *Client) Idle() (*IdleCommand, error) + func (c *Client) List(ref, pattern string, options *imap.ListOptions) *ListCommand + func (c *Client) Login(username, password string) *Command + func (c *Client) Logout() *Command + func (c *Client) Mailbox() *SelectedMailbox + func (c *Client) Move(numSet imap.NumSet, mailbox string) *MoveCommand + func (c *Client) Namespace() *NamespaceCommand + func (c *Client) Noop() *Command + func (c *Client) Rename(mailbox, newName string) *Command + func (c *Client) Search(criteria *imap.SearchCriteria, options *imap.SearchOptions) *SearchCommand + func (c *Client) Select(mailbox string, options *imap.SelectOptions) *SelectCommand + func (c *Client) SetMetadata(mailbox string, entries map[string]*[]byte) *Command + func (c *Client) SetQuota(root string, limits map[imap.QuotaResourceType]int64) *Command + func (c *Client) Sort(options *SortOptions) *SortCommand + func (c *Client) State() imap.ConnState + func (c *Client) Status(mailbox string, options *imap.StatusOptions) *StatusCommand + func (c *Client) Store(numSet imap.NumSet, store *imap.StoreFlags, options *imap.StoreOptions) *FetchCommand + func (c *Client) Subscribe(mailbox string) *Command + func (c *Client) Thread(options *ThreadOptions) *ThreadCommand + func (c *Client) UIDExpunge(uids imap.UIDSet) *ExpungeCommand + func (c *Client) UIDSearch(criteria *imap.SearchCriteria, options *imap.SearchOptions) *SearchCommand + func (c *Client) UIDSort(options *SortOptions) *SortCommand + func (c *Client) UIDThread(options *ThreadOptions) *ThreadCommand + func (c *Client) Unauthenticate() *Command + func (c *Client) Unselect() *Command + func (c *Client) UnselectAndExpunge() *Command + func (c *Client) Unsubscribe(mailbox string) *Command + func (c *Client) WaitGreeting() error + type Command struct + func (cmd *Command) Wait() error + type CopyCommand struct + func (cmd *CopyCommand) Wait() (*imap.CopyData, error) + type EnableCommand struct + func (cmd *EnableCommand) Wait() (*EnableData, error) + type EnableData struct + Caps imap.CapSet + type ExpungeCommand struct + func (cmd *ExpungeCommand) Close() error + func (cmd *ExpungeCommand) Collect() ([]uint32, error) + func (cmd *ExpungeCommand) Next() uint32 + type FetchCommand struct + func (cmd *FetchCommand) Close() error + func (cmd *FetchCommand) Collect() ([]*FetchMessageBuffer, error) + func (cmd *FetchCommand) Next() *FetchMessageData + type FetchItemData interface + type FetchItemDataBinarySection struct + Literal imap.LiteralReader + Section *imap.FetchItemBinarySection + type FetchItemDataBinarySectionSize struct + Part []int + Size uint32 + type FetchItemDataBodySection struct + Literal imap.LiteralReader + Section *imap.FetchItemBodySection + type FetchItemDataBodyStructure struct + BodyStructure imap.BodyStructure + IsExtended bool + type FetchItemDataEnvelope struct + Envelope *imap.Envelope + type FetchItemDataFlags struct + Flags []imap.Flag + type FetchItemDataInternalDate struct + Time time.Time + type FetchItemDataModSeq struct + ModSeq uint64 + type FetchItemDataRFC822Size struct + Size int64 + type FetchItemDataUID struct + UID imap.UID + type FetchMessageBuffer struct + BinarySection map[*imap.FetchItemBinarySection][]byte + BinarySectionSize []FetchItemDataBinarySectionSize + BodySection map[*imap.FetchItemBodySection][]byte + BodyStructure imap.BodyStructure + Envelope *imap.Envelope + Flags []imap.Flag + InternalDate time.Time + ModSeq uint64 + RFC822Size int64 + SeqNum uint32 + UID imap.UID + type FetchMessageData struct + SeqNum uint32 + func (data *FetchMessageData) Collect() (*FetchMessageBuffer, error) + func (data *FetchMessageData) Next() FetchItemData + type GetMetadataCommand struct + func (cmd *GetMetadataCommand) Wait() (*GetMetadataData, error) + type GetMetadataData struct + Entries map[string]*[]byte + Mailbox string + type GetMetadataDepth int + const GetMetadataDepthInfinity + const GetMetadataDepthOne + const GetMetadataDepthZero + func (depth GetMetadataDepth) String() string + type GetMetadataOptions struct + Depth GetMetadataDepth + MaxSize *uint32 + type GetQuotaCommand struct + func (cmd *GetQuotaCommand) Wait() (*QuotaData, error) + type GetQuotaRootCommand struct + func (cmd *GetQuotaRootCommand) Wait() ([]QuotaData, error) + type IdleCommand struct + func (cmd *IdleCommand) Close() error + func (cmd *IdleCommand) Wait() error + type ListCommand struct + func (cmd *ListCommand) Close() error + func (cmd *ListCommand) Collect() ([]*imap.ListData, error) + func (cmd *ListCommand) Next() *imap.ListData + type MoveCommand struct + func (cmd *MoveCommand) Wait() (*MoveData, error) + type MoveData struct + DestUIDs imap.NumSet + SourceUIDs imap.NumSet + UIDValidity uint32 + type NamespaceCommand struct + func (cmd *NamespaceCommand) Wait() (*imap.NamespaceData, error) + type Options struct + DebugWriter io.Writer + TLSConfig *tls.Config + UnilateralDataHandler *UnilateralDataHandler + WordDecoder *mime.WordDecoder + type QuotaData struct + Resources map[imap.QuotaResourceType]QuotaResourceData + Root string + type QuotaResourceData struct + Limit int64 + Usage int64 + type SearchCommand struct + func (cmd *SearchCommand) Wait() (*imap.SearchData, error) + type SelectCommand struct + func (cmd *SelectCommand) Wait() (*imap.SelectData, error) + type SelectedMailbox struct + Flags []imap.Flag + Name string + NumMessages uint32 + PermanentFlags []imap.Flag + type SortCommand struct + func (cmd *SortCommand) Wait() ([]uint32, error) + type SortCriterion struct + Key SortKey + Reverse bool + type SortKey string + const SortKeyArrival + const SortKeyCc + const SortKeyDate + const SortKeyFrom + const SortKeySize + const SortKeySubject + const SortKeyTo + type SortOptions struct + SearchCriteria *imap.SearchCriteria + SortCriteria []SortCriterion + type StatusCommand struct + func (cmd *StatusCommand) Wait() (*imap.StatusData, error) + type ThreadCommand struct + func (cmd *ThreadCommand) Wait() ([]ThreadData, error) + type ThreadData struct + Chain []uint32 + SubThreads []ThreadData + type ThreadOptions struct + Algorithm imap.ThreadAlgorithm + SearchCriteria *imap.SearchCriteria + type UnilateralDataHandler struct + Expunge func(seqNum uint32) + Fetch func(msg *FetchMessageData) + Mailbox func(data *UnilateralDataMailbox) + Metadata func(mailbox string, entries []string) + type UnilateralDataMailbox struct + Flags []imap.Flag + NumMessages *uint32 + PermanentFlags []imap.Flag v2.0.0-beta2 Mar 15, 2024 Other modules containing this package github.com/zwjzxh520/go-imap/v3 github.com/zwjzxh520/go-imap/v4