mailstore

package
v0.0.0-...-75f3508 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailRouter

type MailRouter interface {
	FindStoreFor(username string) (Store, bool)
}

type Message

type Message interface {
	Filepath() string
	Filename() string
	Remove() error
}

type SendQueue

type SendQueue interface {
	Ensure() error
	Offer(msg Message) error
	Pop() (Message, bool)
}

type Store

type Store interface {
	Ensure() error
	Deliver(io.Reader) (Message, error)
	ListNew() ([]Message, error)
	// process a new message, mark it as no longer new and return the message after being processed
	Process(msg Message) (Message, error)
	// List all non-new messages
	List() ([]Message, error)
}

Jump to

Keyboard shortcuts

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