imap

package
v0.0.0-...-f702f57 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Store is a mailstore with an IMAP backend

func NewStore

func NewStore(cfg *offmap.Config) (*Store, error)

NewStore creates a new IMAP store

func (*Store) ApplyEmailDiff

func (s *Store) ApplyEmailDiff(state *offmap.State, remote string, c *offmap.Diff) (bool, error)

func (*Store) ApplyMailboxDiff

func (s *Store) ApplyMailboxDiff(state *offmap.State, c *offmap.Diff) error

func (*Store) Cleanup

func (s *Store) Cleanup()

func (*Store) Delimiter

func (s *Store) Delimiter() string

Returns the delimiter used on the server

func (*Store) Diff

func (s *Store) Diff(cached []*offmap.Mailbox) (*offmap.Diff, error)

func (*Store) DownloadEmail

func (s *Store) DownloadEmail(mbox string, emls []*offmap.Email) chan *offmap.FullEmail

func (*Store) SupportCondstore

func (s *Store) SupportCondstore() bool

If an imap backend supports condstore, we use a different sync logic

func (*Store) SupportListStatus

func (s *Store) SupportListStatus() bool

func (*Store) UpdateMailboxStatus

func (s *Store) UpdateMailboxStatus(state *offmap.State, local string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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