maildir

package
v0.0.0-...-f26ed72 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 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
}

Maildir is a single maildir directory.

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) Deliver

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

Deliver delivers the Message to the "new" maildir.

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