Documentation ¶
Overview ¶
A memory backend.
Index ¶
- Constants
- Variables
- type Backend
- type MailAccount
- func (ma *MailAccount) CreateMailbox(name string) error
- func (ma *MailAccount) DeleteMailbox(name string) error
- func (ma *MailAccount) GetMailbox(name string) (backend2.Mailbox, error)
- func (ma *MailAccount) ListMailboxes(subscribed bool) (mailboxes []backend2.Mailbox, err error)
- func (ma *MailAccount) Logout() error
- func (ma *MailAccount) RenameMailbox(existingName, newName string) error
- func (ma *MailAccount) Username() string
- type MailMessage
- type Mailbox
- func (mbox *Mailbox) Check() error
- func (mbox *Mailbox) CopyMessages(uid bool, seqset *imap.SeqSet, destName string) error
- func (mbox *Mailbox) CreateMessage(flags []string, date time.Time, body imap.Literal) error
- func (mbox *Mailbox) Expunge() error
- func (mbox *Mailbox) Info() (*imap.MailboxInfo, error)
- func (mbox *Mailbox) ListMessages(uid bool, seqSet *imap.SeqSet, items []imap.FetchItem, ch chan<- *imap.Message) error
- func (mbox *Mailbox) Name() string
- func (mbox *Mailbox) SearchMessages(uid bool, criteria *imap.SearchCriteria) ([]uint32, error)
- func (mbox *Mailbox) SetSubscribed(subscribed bool) error
- func (mbox *Mailbox) Status(items []imap.StatusItem) (*imap.MailboxStatus, error)
- func (mbox *Mailbox) UpdateMessagesFlags(uid bool, seqset *imap.SeqSet, op imap.FlagsOp, flags []string) error
Constants ¶
View Source
const Mailbox_Inbox = "INBOX"
Variables ¶
View Source
var Delimiter = "/"
Functions ¶
This section is empty.
Types ¶
type MailAccount ¶
type MailAccount struct { entity.MailAccount Mailboxes map[string]*Mailbox }
func (*MailAccount) CreateMailbox ¶
func (ma *MailAccount) CreateMailbox(name string) error
func (*MailAccount) DeleteMailbox ¶
func (ma *MailAccount) DeleteMailbox(name string) error
func (*MailAccount) GetMailbox ¶
func (ma *MailAccount) GetMailbox(name string) (backend2.Mailbox, error)
func (*MailAccount) ListMailboxes ¶
func (ma *MailAccount) ListMailboxes(subscribed bool) (mailboxes []backend2.Mailbox, err error)
func (*MailAccount) Logout ¶
func (ma *MailAccount) Logout() error
func (*MailAccount) RenameMailbox ¶
func (ma *MailAccount) RenameMailbox(existingName, newName string) error
func (*MailAccount) Username ¶
func (ma *MailAccount) Username() string
type MailMessage ¶
type MailMessage struct {
entity.MailMessage
}
func (*MailMessage) Fetch ¶
func (m *MailMessage) Fetch(seqNum uint32, items []imap.FetchItem) (*imap.Message, error)
type Mailbox ¶
func (*Mailbox) CopyMessages ¶
* 拷贝满足条件的消息到另一个收件箱
func (*Mailbox) CreateMessage ¶
func (*Mailbox) ListMessages ¶
func (*Mailbox) SearchMessages ¶
func (*Mailbox) SetSubscribed ¶
Click to show internal directories.
Click to hide internal directories.