Documentation ¶
Overview ¶
This package is used for writing mails to a maildir, according to the specification located at http://www.courier-mta.org/maildir.html
Index ¶
Constants ¶
View Source
const DefaultFilePerm = 0600
Default file perms for files. For directories u+x will be added
View Source
const DoNotSetOwner = -1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Maildir ¶
type Maildir struct { // The root path ends with a /, others don't, so we can have // the child of a maildir just with path + "." + encodedChildName. Path string // contains filtered or unexported fields }
Represent a folder in a maildir. The root folder is usually the Inbox.
func NewWithPerm ¶
Same as New, but ability to control permissions perm is an octal used for os.Chmod and what will be used for files for directories, an additional chmod u+x will be applied. uid and gid are for os.Chown, pass DoNotSetOwner constant to ignore.
Click to show internal directories.
Click to hide internal directories.