Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeIMAPUTF7 ¶ added in v0.0.4
Types ¶
type Mailbox ¶
type Mailbox struct {
Path string // mailbox path
Folder string // mailbox folder name
// contains filtered or unexported fields
}
Mailbox represents a mailbox iterator for a single mailbox
func NewMailbox ¶
NewMailbox creates mailbox iterators for all mailboxes found
func (*Mailbox) ScanFiles ¶ added in v0.0.3
func (m *Mailbox) ScanFiles() (*ScanResult, error)
ScanFiles scans the mailbox directory for message files
type Message ¶
type Message struct {
Identifier string
MailboxName string // Added mailbox name for nested maildir support
Flags []Flag
Keywords map[string]bool // converted JMAP keywords
InternalDate int64
Contents []byte
}
Message represents an email message
type ScanResult ¶ added in v0.0.3
type ScanResult struct {
// contains filtered or unexported fields
}
func (*ScanResult) Next ¶ added in v0.0.3
func (s *ScanResult) Next() (*Message, error)
Next returns the next message from the mailbox
Click to show internal directories.
Click to hide internal directories.