folder

package module
v3.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: MIT Imports: 7 Imported by: 2

README

Folder

This Go library implements parsing of various mail-folder formats.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Folder

type Folder interface {
	// Message returns an io.ReadCloser for the next message in the folder.
	// After the last message,
	// Message returns a nil ReadCloser.
	// After calling Message,
	// it is an error to call it again before first closing the ReadCloser.
	Message() (io.ReadCloser, error)

	// Close releases resources held by the folder.
	Close() error
}

Folder allows reading messages one by one.

func Open

func Open(name string) (Folder, error)

Open opens the given pathname as a mail folder if possible, trying one type after another and uncompressing on the fly if needed.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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