Versions in this module Expand all Collapse all v0 v0.2.0 Jan 20, 2020 v0.1.0 Jan 12, 2020 Changes in this version + const AnsweredFlag + const DeletedFlag + const DraftFlag + const FlaggedFlag + const RecentFlag + const SeenFlag + type Connection struct + IMAPS bool + Password string + Port int + Server string + Starttls *bool + TLSCACertFile string + TLSVerify *bool + Username string + func (conn *Connection) Connect() error + func (conn *Connection) CreateMailbox(name string) error + func (conn *Connection) DeleteMailbox(name string) error + func (conn *Connection) DeleteMsgs(mailbox string, uids []uint32, expunge bool) error + func (conn *Connection) Disconnect() error + func (conn *Connection) Fetch(mailbox string, uids []uint32) ([]*Message, error) + func (conn *Connection) GetFlags(mailbox string, uid uint32) ([]string, error) + func (conn *Connection) List() (map[string]imapUtil.MailboxInfo, error) + func (conn *Connection) Move(uids []uint32, from string, to string) error + func (conn *Connection) Search(mailbox string, withFlags []string, withoutFlags []string) ([]uint32, error) + func (conn *Connection) SearchAndFetch(mailbox string, withFlags []string, withoutFlags []string) ([]*Message, error) + func (conn *Connection) Select(mailbox string, readOnly bool, autoCreate bool) (*imapUtil.MailboxStatus, error) + func (conn *Connection) SetFlags(mailbox string, uids []uint32, flagOp string, flags []interface{}, ...) error + func (conn *Connection) Upload(file string, mailbox string, flags []string) error + type Message struct + Headers MessageHeaders + RawMessage imapUtil.Message + func NewMessage(rawMail *imapUtil.Message, headers MessageHeaders) *Message + type MessageHeaders map[string]interface + type RawMessage imapUtil.Message