action

package
v0.0.0-...-54c33f2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	// Perform executes the action on the server.
	// Return true to call ""
	Perform(*imap.Message, *client.Client) error
}

func NewActionFromString

func NewActionFromString(s string) Action

func NewDelete

func NewDelete() Action

type ActionDelete

type ActionDelete struct{}

func (ActionDelete) Perform

func (a ActionDelete) Perform(msg *imap.Message, c *client.Client) error

type ActionMove

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

func NewMove

func NewMove(dest string) ActionMove

func (ActionMove) Perform

func (a ActionMove) Perform(msg *imap.Message, c *client.Client) error

type ActionSeen

type ActionSeen struct{}

func NewSeenAction

func NewSeenAction() ActionSeen

func (ActionSeen) Perform

func (a ActionSeen) Perform(msg *imap.Message, c *client.Client) error

Jump to

Keyboard shortcuts

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