Documentation
¶
Index ¶
- Constants
- type Client
- type Conf
- 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) MoveMessages(uid bool, seqSet *imap.SeqSet, dest string) 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 RemoteConf
- type Service
- type User
- func (u *User) CreateMailbox(name string) error
- func (u *User) DeleteMailbox(name string) error
- func (u *User) GetMailbox(name string) (mailbox backend.Mailbox, err 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 ¶
View Source
const (
Version = "1.0.1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func WrapEXClient ¶
type Conf ¶
type Conf struct { SrvAddr string `json:"srv_addr"` SrvDomain string `json:"srv_domain"` RemoteConf map[string]*RemoteConf `json:"remote_conf"` }
type Mailbox ¶
type Mailbox struct { Subscribed bool // contains filtered or unexported fields }
func (*Mailbox) CopyMessages ¶
func (*Mailbox) CreateMessage ¶
func (*Mailbox) ListMessages ¶
func (*Mailbox) MoveMessages ¶
func (*Mailbox) SearchMessages ¶
func (*Mailbox) SetSubscribed ¶
type RemoteConf ¶
type RemoteConf struct { RemoteSrvCAs string `json:"ca_files"` RemoteCADomain string `json:"ca_domain"` AllowNotSecure bool `json:"allow_not_secure"` RemoteSrvName string `json:"remote_srv_name"` RemoteSrvPort int `json:"remote_srv_port"` // contains filtered or unexported fields }
func (*RemoteConf) String ¶
func (rc *RemoteConf) String() string
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) StartWithCtx ¶ added in v1.2.2
func (is *Service) StartWithCtx(cancel context.CancelFunc) error
type User ¶
type User struct {
// contains filtered or unexported fields
}
func (*User) CreateMailbox ¶
func (*User) DeleteMailbox ¶
func (*User) GetMailbox ¶
func (*User) ListMailboxes ¶
func (*User) RenameMailbox ¶
Click to show internal directories.
Click to hide internal directories.