Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Automatically detect behaviour from the first reply. ExpungePolicyAuto = iota // The server deletes message in increasing sequence number. After each // delete, outstanding messages need to have their sequence numbers // decremented. ExpungePolicyLowToHigh // The server deletes messages in any order, but does not change any of the // sequence numbers. ExpungePolicyStable )
The IMAP server behaviour when deleting multiple messages.
View Source
const ( Unknown imapProvider = iota GMail Proton Office365 Zoho FastMail )
View Source
const NonExistentAttr = "\\NonExistent"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CachedHeader ¶
type ExpungeHandler ¶
type ExpungeHandler struct {
// contains filtered or unexported fields
}
func NewExpungeHandler ¶
func NewExpungeHandler(worker *IMAPWorker, uids []uint32, forDelete bool) *ExpungeHandler
Create a new ExpungeHandler for a list of UIDs that are being deleted or moved.
func (*ExpungeHandler) IsExpungingForDelete ¶
func (h *ExpungeHandler) IsExpungingForDelete(uid uint32) bool
func (*ExpungeHandler) PopSequenceNumber ¶
func (h *ExpungeHandler) PopSequenceNumber(seqNum uint32) (uint32, bool)
Translate the sequence number received from the IMAP server into the associated UID, deduce the policy used by the server from the first reply, and update the remaining mappings according to that policy if required.
type IMAPWorker ¶
type IMAPWorker struct {
// contains filtered or unexported fields
}
func (*IMAPWorker) BuildExpungeHandler ¶
func (w *IMAPWorker) BuildExpungeHandler(uids []uint32, forDelete bool)
func (*IMAPWorker) Capabilities ¶
func (w *IMAPWorker) Capabilities() *models.Capabilities
func (*IMAPWorker) PathSeparator ¶
func (w *IMAPWorker) PathSeparator() string
func (*IMAPWorker) Run ¶
func (w *IMAPWorker) Run()
type SeqMap ¶
type SeqMap struct {
// contains filtered or unexported fields
}
func (*SeqMap) Initialize ¶
Initialize sets the initial seqmap of the mailbox
func (*SeqMap) Pop ¶
Pop removes seqnum from the SeqMap. seqnum must be a valid seqnum, ie [1:size of mailbox]
Source Files
¶
Click to show internal directories.
Click to hide internal directories.