importmail

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Import

type Import struct {
	Options
	// contains filtered or unexported fields
}

func (*Import) Run

func (c *Import) Run() (err error)

type Options

type Options struct {
	Host      string `required:"" help:"Set IMAP host."`
	Port      int    `default:"993" help:"Set IMAP port."`
	Username  string `required:"" help:"Set IMAP username."`
	Password  string `required:"" help:"Set IMAP password."`
	RemoteDir string `name:"remote-dir" default:"INBOX" help:"Set IMAP directory."`
	SizeLimit string `name:"size-limit" default:"20M" help:"Set size limit, mail exceed this limit will be skipped."`
	About     about  `help:"Show about."`

	SaveImportedTo string `hidden:"" default:"imported"`

	Eml []string `name:".eml" arg:"" optional:"" help:"list of .eml files"`
}

func MustParseOptions

func MustParseOptions() (opt Options)

Jump to

Keyboard shortcuts

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