maildir

package
v0.0.0-...-90e9758 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package maildir implements reading and writing maildir directories as specified in http://cr.yp.to/proto/maildir.html.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key string

Key is a key of a maildir message.

type Maildir

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

func Create

func Create(dir string) (Maildir, error)

Create creates a maildir rooted at dir.

func (Maildir) Delete

func (d Maildir) Delete(k Key) error

Delete removes the message with the specified key from cur/new.

func (Maildir) DeliverCur

func (d Maildir) DeliverCur(m *mail.Message) (Key, error)

func (Maildir) DeliverNew

func (d Maildir) DeliverNew(m *mail.Message) (Key, error)

func (Maildir) GetDir

func (d Maildir) GetDir() string

func (Maildir) GetFile

func (d Maildir) GetFile(k Key) (string, error)

GetFile gets the file path for the specified key.

Jump to

Keyboard shortcuts

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