limits

package
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMaxMailboxCountReached = fmt.Errorf("max mailbox count reached")
View Source
var ErrMaxMailboxMessageCountReached = fmt.Errorf("max mailbox message count reached")
View Source
var ErrMaxUIDReached = fmt.Errorf("max UID value reached")
View Source
var ErrMaxUIDValidityReached = fmt.Errorf("max UIDValidity value reached")

Functions

func IsIMAPLimitErr

func IsIMAPLimitErr(err error) bool

Types

type IMAP

type IMAP struct {
	// contains filtered or unexported fields
}

IMAP contains configurable upper limits that can be enforced by the Gluon server.

func DefaultLimits

func DefaultLimits() IMAP

func NewIMAPLimits

func NewIMAPLimits(maxMailboxCount uint32, maxMessageCount uint32, maxUID imap.UID, maxUIDValidity imap.UID) IMAP

func (IMAP) CheckMailBoxCount

func (i IMAP) CheckMailBoxCount(mailboxCount int) error

func (IMAP) CheckMailBoxMessageCount

func (i IMAP) CheckMailBoxMessageCount(existingCount int, newCount int) error

func (IMAP) CheckUIDCount

func (i IMAP) CheckUIDCount(existingUID imap.UID, newCount int) error

func (IMAP) CheckUIDValidity

func (i IMAP) CheckUIDValidity(uid imap.UID) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL