fake

package
v0.0.0-...-3118640 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Debug    chan []byte
	Username string
	Password string
}

func (*Backend) Login

func (i *Backend) Login(connInfo *imap.ConnInfo, username, password string) (backend.User, error)

type Mailbox

type Mailbox struct {
	Debug    chan []byte
	ImapName string
}

func (*Mailbox) Check

func (m *Mailbox) Check() error

func (*Mailbox) CopyMessages

func (m *Mailbox) CopyMessages(uid bool, seqset *imap.SeqSet, dest string) error

func (*Mailbox) CreateMessage

func (m *Mailbox) CreateMessage(flags []string, date time.Time, body imap.Literal) error

func (*Mailbox) Expunge

func (m *Mailbox) Expunge() error

func (*Mailbox) Info

func (m *Mailbox) Info() (*imap.MailboxInfo, error)

func (*Mailbox) ListMessages

func (m *Mailbox) ListMessages(uid bool, seqset *imap.SeqSet, items []imap.FetchItem, ch chan<- *imap.Message) error

func (*Mailbox) Name

func (m *Mailbox) Name() string

func (*Mailbox) SearchMessages

func (m *Mailbox) SearchMessages(uid bool, criteria *imap.SearchCriteria) ([]uint32, error)

func (*Mailbox) SetSubscribed

func (m *Mailbox) SetSubscribed(subscribed bool) error

func (*Mailbox) Status

func (m *Mailbox) Status(items []imap.StatusItem) (*imap.MailboxStatus, error)

func (*Mailbox) UpdateMessagesFlags

func (m *Mailbox) UpdateMessagesFlags(uid bool, seqset *imap.SeqSet, operation imap.FlagsOp, flags []string) error

type User

type User struct {
	Debug    chan []byte
	ImapUser string
}

func (*User) CreateMailbox

func (i *User) CreateMailbox(name string) error

func (*User) DeleteMailbox

func (i *User) DeleteMailbox(name string) error

func (*User) GetMailbox

func (i *User) GetMailbox(name string) (backend.Mailbox, error)

func (*User) ListMailboxes

func (i *User) ListMailboxes(subscribed bool) ([]backend.Mailbox, error)

func (*User) Logout

func (i *User) Logout() error

func (*User) RenameMailbox

func (i *User) RenameMailbox(existingName, newName string) error

func (*User) Username

func (i *User) Username() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL