imap_action

package
v0.0.0-...-f514c2e Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigInput = "config"
	Function    = "function"
	Params      = "params"
)

Variables

This section is empty.

Functions

func Invoke

func Invoke(stub domain.Stub, input map[string]interface{}) (output map[string]interface{}, err error)

Types

type Client

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

func NewClient

func NewClient(logger logger.Logger, cfg *Config) (*Client, error)

func (*Client) GetNewMessageAttachments

func (c *Client) GetNewMessageAttachments() (map[string]interface{}, error)

func (*Client) MarkMessageAsRead

func (c *Client) MarkMessageAsRead(seqNum uint32) error

func (*Client) MoveFailedMessage

func (c *Client) MoveFailedMessage(seqNum uint32) error

type Config

type Config struct {
	Port          string
	Domain        string
	Username      string
	Password      string
	FromFilter    string
	SubjectFilter string
}

Jump to

Keyboard shortcuts

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