maildir

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: 12 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 {
	// contains filtered or unexported fields
}

Store represents a maildir storage backend

func NewStore

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

func (*Store) ApplyEmailDiff

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

func (*Store) ApplyMailboxDiff

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

func (*Store) Diff

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

func (*Store) DownloadEmail

func (s *Store) DownloadEmail(emls []*offmap.Email) []*offmap.Email

DownloadEmail populates the Email.body field

func (*Store) State

func (s *Store) State() (map[string]*offmap.Mailbox, error)

State returns a map of mailbox name to mailbox object

Jump to

Keyboard shortcuts

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