Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrCause ¶ added in v0.16.0
ErrCause returns the cause of the error, the inner-most error in the wrapped chain.
func NewRandomMailboxID ¶ added in v0.13.0
func NewRandomMailboxID() string
NewRandomMailboxID return a new random mailbox ID. For debugging purposes, the ID starts with the 'lbl-' prefix.
func NewRandomMessageID ¶
func NewRandomMessageID() string
NewRandomMessageID return a new random message ID. For debugging purposes, the ID starts with the 'message-' prefix.
func NewRandomUserID ¶
func NewRandomUserID() string
NewRandomUserID return a new random user ID. For debugging purposes, the ID starts with the 'user-' prefix.
Types ¶
type MessageHashesMap ¶ added in v0.17.0
type MessageHashesMap struct {
// contains filtered or unexported fields
}
MessageHashesMap tracks the hashes for a literal and it's associated internal IMAP ID.
func NewMessageHashesMap ¶ added in v0.17.0
func NewMessageHashesMap() *MessageHashesMap
func (*MessageHashesMap) Erase ¶ added in v0.17.0
func (m *MessageHashesMap) Erase(ids ...imap.InternalMessageID)
Erase removes the info associated with a given id.
func (*MessageHashesMap) Insert ¶ added in v0.17.0
func (m *MessageHashesMap) Insert(id imap.InternalMessageID, literal []byte) (bool, error)
Insert inserts the hash of the current message literal into the map and return true if an existing value was already present.