Documentation ¶
Overview ¶
Package maildir provide a library to manage email using maildir format.
References ¶
[1] http://www.qmail.org/qmail-manual-html/man5/maildir.html
Index ¶
- type Manager
- func (mg *Manager) Delete(fname string) (err error)
- func (mg *Manager) DeleteOutQueue(fname string) (err error)
- func (mg *Manager) Get(fname string) (err error)
- func (mg *Manager) Incoming(email []byte) (err error)
- func (mg *Manager) OutQueue(email []byte) (err error)
- func (mg *Manager) RemoveAll(dir string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manage email in a directory.
func New ¶
New create new maildir Manager in directory and initialize the hostname, pid, and counter for generating unique name.
func (*Manager) DeleteOutQueue ¶
DeleteOutQueue delete temporary file in send queue.
func (*Manager) Incoming ¶
Incoming save incoming message, from external MTA, in directory "${dir}/tmp/${unique}". Upon success, hard link it to "${dir}/new/${unique}" and delete the temporary file.
Click to show internal directories.
Click to hide internal directories.