Documentation ¶
Index ¶
- Variables
- type Backend
- 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
- type Message
- type User
- func (u *User) CreateMailbox(name string) error
- func (u *User) DeleteMailbox(name string) error
- func (u *User) GetMailbox(name string) (backend.Mailbox, error)
- func (u *User) ListMailboxes(subscribed bool) (mailboxes []backend.Mailbox, err error)
- func (u *User) Logout() error
- func (u *User) RenameMailbox(existingName, newName string) error
- func (u *User) Username() string
Constants ¶
This section is empty.
Variables ¶
View Source
var Delimiter = "/"
Delimiter for mailboxes
Functions ¶
This section is empty.
Types ¶
type Mailbox ¶
type Mailbox struct { Subscribed bool Messages []*Message // contains filtered or unexported fields }
Mailbox to hold messages and other info
func (*Mailbox) CopyMessages ¶
CopyMessages is not implemented yet
func (*Mailbox) CreateMessage ¶
CreateMessage will create a new local message
func (*Mailbox) ListMessages ¶
func (mbox *Mailbox) ListMessages(uid bool, seqSet *imap.SeqSet, items []imap.FetchItem, ch chan<- *imap.Message) error
ListMessages of the mailbox
func (*Mailbox) SearchMessages ¶
SearchMessages in the mailbox
func (*Mailbox) SetSubscribed ¶
SetSubscribed will mark the mailbox as subscribed
type Message ¶
type Message struct { UID uint32 ID string Date time.Time Size uint32 Flags []string DMsg *bmmessage.DecryptedMessage User *User FullMsg []byte }
Message holds all the information needed to retrieve a full message
type User ¶
User holds the user info
func (*User) CreateMailbox ¶
CreateMailbox is not implemented yet
func (*User) DeleteMailbox ¶
DeleteMailbox is not implemented yet
func (*User) GetMailbox ¶
GetMailbox from server
func (*User) ListMailboxes ¶
ListMailboxes for the user
func (*User) RenameMailbox ¶
RenameMailbox is not implemented yet
Click to show internal directories.
Click to hide internal directories.