Documentation
¶
Overview ¶
Implements the IMAP APPENDLIMIT Extension, as defined in RFC 7889.
Index ¶
Constants ¶
View Source
const Capability = "APPENDLIMIT"
View Source
const StatusAppendLimit imap.StatusItem = "APPENDLIMIT"
Variables ¶
View Source
var ErrTooBig = server.ErrStatusResp(&imap.StatusResp{ Type: imap.StatusRespNo, Code: codeTooBig, Info: "Message size exceeding limit", })
An error that should be returned by User.CreateMessage when the message size is too big.
Functions ¶
func MailboxStatusAppendLimit ¶
func MailboxStatusAppendLimit(status *imap.MailboxStatus) *uint32
func StatusSetAppendLimit ¶
func StatusSetAppendLimit(status *imap.MailboxStatus, value *uint32)
StatusSetAppendLimit sets limit value in MailboxStatus object, nil pointer value will remove limit.
Types ¶
type Backend ¶
type Backend interface {
// Get the fixed maximum message size in octets that the backend will accept
// when creating a new message. If there is no limit, return nil.
CreateMessageLimit() *uint32
}
A backend that supports retrieving per-user message size limits.
type User ¶
type User interface {
// Get the fixed maximum message size in octets that the backend will accept
// when creating a new message. If there is no limit, return nil.
//
// This overrides the global backend limit.
CreateMessageLimit() *uint32
}
A user that supports retrieving per-user message size limits.
Click to show internal directories.
Click to hide internal directories.