disk

package module
v0.0.0-...-ee40c3f Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2017 License: MIT Imports: 11 Imported by: 0

README

go-imap-disk

A go-imap backend that stores mails to disk.

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mailbox

type Mailbox struct {
	Dirpath string
	// contains filtered or unexported fields
}

func NewMailbox

func NewMailbox(dirpath string, info *imap.MailboxInfo) *Mailbox

func (*Mailbox) Check

func (m *Mailbox) Check() error

func (*Mailbox) Close

func (m *Mailbox) Close() error

func (*Mailbox) CopyMessages

func (m *Mailbox) CopyMessages(isUid bool, seqSet *imap.SeqSet, dest string) error

func (*Mailbox) CreateMessage

func (m *Mailbox) CreateMessage(flags []string, date time.Time, body imap.Literal) error

func (*Mailbox) Expunge

func (m *Mailbox) Expunge() error

func (*Mailbox) Info

func (m *Mailbox) Info() (*imap.MailboxInfo, error)

func (*Mailbox) ListMessages

func (m *Mailbox) ListMessages(isUid bool, seqSet *imap.SeqSet, items []string, ch chan<- *imap.Message) error

func (*Mailbox) Name

func (m *Mailbox) Name() string

func (*Mailbox) SearchMessages

func (m *Mailbox) SearchMessages(isUid bool, criteria *imap.SearchCriteria) ([]uint32, error)

func (*Mailbox) SetSubscribed

func (m *Mailbox) SetSubscribed(subscribed bool) error

func (*Mailbox) Status

func (m *Mailbox) Status(items []string) (*imap.MailboxStatus, error)

func (*Mailbox) UpdateMessagesFlags

func (m *Mailbox) UpdateMessagesFlags(isUid bool, seqSet *imap.SeqSet, operation imap.FlagsOp, flags []string) error

type Message

type Message struct {
	Filepath string `json:"-"`

	SeqNum uint32 `json:"-"`
	Uid    uint32 `json:"-"`

	Flags map[string]bool
	Date  time.Time
}

Jump to

Keyboard shortcuts

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