imap

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) Append

func (c *Client) Append(name string, flags []string, date time.Time, msg imap.Literal) error

func (*Client) Copy

func (c *Client) Copy(seqset *imap.SeqSet, dest string) error

func (*Client) Create

func (c *Client) Create(name string) error

func (*Client) Delete

func (c *Client) Delete(name string) error

func (*Client) Fetch

func (c *Client) Fetch(folder string, start, end, limit uint32) ([]*imap.Message, error)

func (*Client) List

func (c *Client) List(ref, name string) ([]*imap.MailboxInfo, error)

func (*Client) Move

func (c *Client) Move(seqset *imap.SeqSet, dest string) error

func (*Client) Noop

func (c *Client) Noop() error

func (*Client) Rename

func (c *Client) Rename(existingName, newName string) error

func (*Client) Search

func (c *Client) Search(criteria *imap.SearchCriteria) ([]uint32, error)

func (*Client) Status

func (c *Client) Status(name string) (*imap.MailboxStatus, error)

type Imap

type Imap struct {
	Server    string `yaml:"server"`
	Username  string `yaml:"username"`
	Password  string `yaml:"password"`
	Separator string `yaml:"separator"`
}

func (*Imap) MakeClient

func (i *Imap) MakeClient(user string) (*Client, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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