imap

package
v0.0.0-...-0798a42 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const NonExistentAttr = "\\NonExistent"

Variables

This section is empty.

Functions

func NewIMAPWorker

func NewIMAPWorker(worker *types.Worker) (types.Backend, error)

Types

type CachedHeader

type CachedHeader struct {
	BodyStructure models.BodyStructure
	Envelope      models.Envelope
	InternalDate  time.Time
	Uid           uint32
	Size          uint32
	Header        []byte
	Created       time.Time
}

type IMAPWorker

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

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) Get

func (s *SeqMap) Get(seqnum uint32) (uint32, bool)

Get returns the UID of the given seqnum

func (*SeqMap) Initialize

func (s *SeqMap) Initialize(uids []uint32)

Initialize sets the initial seqmap of the mailbox

func (*SeqMap) Pop

func (s *SeqMap) Pop(seqnum uint32) (uint32, bool)

Pop removes seqnum from the SeqMap. seqnum must be a valid seqnum, ie [1:size of mailbox]

func (*SeqMap) Put

func (s *SeqMap) Put(uid uint32)

Put adds a UID to the slice. Put should only be used to add new messages into the slice

func (*SeqMap) Size

func (s *SeqMap) Size() int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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