maildir

package
v0.0.0-...-e48ae90 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2015 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dir

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

Dir is a single directory containing maildir files

func NewDir

func NewDir(dir string) (*Dir, error)

func (*Dir) EachMessage

func (d *Dir) EachMessage(handler MessageHandler) error

func (*Dir) Open

func (d *Dir) Open(filename string) (*email.Message, error)

Open a single message from the dir

func (*Dir) Write

func (d *Dir) Write(m *email.Message) (string, error)

type MessageHandler

type MessageHandler func(*email.Message) error

MessageHandler is a function for iterating through a maildir

Jump to

Keyboard shortcuts

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