account

package
v0.0.0-...-1a3b2b2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Align

type Align struct {
	Pos app.AlignPosition `opt:"pos" metavar:"top|center|bottom" action:"ParsePos" complete:"CompletePos" desc:"Position."`
}

func (Align) Aliases

func (Align) Aliases() []string

func (*Align) CompletePos

func (a *Align) CompletePos(arg string) []string

func (Align) Context

func (Align) Context() commands.CommandContext

func (Align) Description

func (Align) Description() string

func (Align) Execute

func (a Align) Execute(args []string) error

func (*Align) ParsePos

func (a *Align) ParsePos(arg string) error

type ChangeFolder

type ChangeFolder struct {
	Account string `opt:"-a" complete:"CompleteAccount" desc:"Change to specified account."`
	Folder  string `opt:"..." complete:"CompleteFolderAndNotmuch" desc:"Folder name."`
}

func (ChangeFolder) Aliases

func (ChangeFolder) Aliases() []string

func (*ChangeFolder) CompleteAccount

func (c *ChangeFolder) CompleteAccount(arg string) []string

func (*ChangeFolder) CompleteFolderAndNotmuch

func (c *ChangeFolder) CompleteFolderAndNotmuch(arg string) []string

func (ChangeFolder) Context

func (ChangeFolder) Description

func (ChangeFolder) Description() string

func (ChangeFolder) Execute

func (c ChangeFolder) Execute([]string) error

type CheckMail

type CheckMail struct{}

func (CheckMail) Aliases

func (CheckMail) Aliases() []string

func (CheckMail) Context

func (CheckMail) Context() commands.CommandContext

func (CheckMail) Description

func (CheckMail) Description() string

func (CheckMail) Execute

func (CheckMail) Execute(args []string) error

type Clear

type Clear struct {
	Selected bool `opt:"-s" desc:"Select first message after clearing."`
}

func (Clear) Aliases

func (Clear) Aliases() []string

func (Clear) Context

func (Clear) Context() commands.CommandContext

func (Clear) Description

func (Clear) Description() string

func (Clear) Execute

func (c Clear) Execute(args []string) error

type Compose

type Compose struct {
	Headers  string `opt:"-H" action:"ParseHeader" desc:"Add the specified header to the message."`
	Template string `opt:"-T" complete:"CompleteTemplate" desc:"Template name."`
	Edit     bool   `opt:"-e" desc:"Force [compose].edit-headers = true."`
	NoEdit   bool   `opt:"-E" desc:"Force [compose].edit-headers = false."`
	Body     string `opt:"..." required:"false"`
}

func (Compose) Aliases

func (Compose) Aliases() []string

func (*Compose) CompleteTemplate

func (*Compose) CompleteTemplate(arg string) []string

func (Compose) Context

func (Compose) Context() commands.CommandContext

func (Compose) Description

func (Compose) Description() string

func (Compose) Execute

func (c Compose) Execute(args []string) error

func (*Compose) ParseHeader

func (c *Compose) ParseHeader(arg string) error

type Connection

type Connection struct{}

func (Connection) Aliases

func (Connection) Aliases() []string

func (Connection) Context

func (Connection) Description

func (Connection) Description() string

func (Connection) Execute

func (c Connection) Execute(args []string) error

type ExpandCollapseFolder

type ExpandCollapseFolder struct{}

func (ExpandCollapseFolder) Aliases

func (ExpandCollapseFolder) Aliases() []string

func (ExpandCollapseFolder) Context

func (ExpandCollapseFolder) Description

func (ExpandCollapseFolder) Description() string

func (ExpandCollapseFolder) Execute

func (ExpandCollapseFolder) Execute(args []string) error

type ExportMbox

type ExportMbox struct {
	Filename string `opt:"filename" complete:"CompleteFilename" desc:"Output file path."`
}

func (ExportMbox) Aliases

func (ExportMbox) Aliases() []string

func (*ExportMbox) CompleteFilename

func (*ExportMbox) CompleteFilename(arg string) []string

func (ExportMbox) Context

func (ExportMbox) Description

func (ExportMbox) Description() string

func (ExportMbox) Execute

func (e ExportMbox) Execute(args []string) error

type ImportMbox

type ImportMbox struct {
	Path string `opt:"path" complete:"CompleteFilename" desc:"Input file path or URL."`
}

func (ImportMbox) Aliases

func (ImportMbox) Aliases() []string

func (*ImportMbox) CompleteFilename

func (*ImportMbox) CompleteFilename(arg string) []string

func (ImportMbox) Context

func (ImportMbox) Description

func (ImportMbox) Description() string

func (ImportMbox) Execute

func (i ImportMbox) Execute(args []string) error

type MakeDir

type MakeDir struct {
	Folder string `opt:"folder" complete:"CompleteFolder" desc:"Folder name."`
}

func (MakeDir) Aliases

func (MakeDir) Aliases() []string

func (*MakeDir) CompleteFolder

func (*MakeDir) CompleteFolder(arg string) []string

func (MakeDir) Context

func (MakeDir) Context() commands.CommandContext

func (MakeDir) Description

func (MakeDir) Description() string

func (MakeDir) Execute

func (m MakeDir) Execute(args []string) error

type NextPrevFolder

type NextPrevFolder struct {
	Offset int `opt:"n" default:"1"`
}

func (NextPrevFolder) Aliases

func (NextPrevFolder) Aliases() []string

func (NextPrevFolder) Context

func (NextPrevFolder) Description

func (NextPrevFolder) Description() string

func (NextPrevFolder) Execute

func (np NextPrevFolder) Execute(args []string) error

type NextPrevMsg

type NextPrevMsg struct {
	Amount  int `opt:"n" default:"1" metavar:"<n>[%]" action:"ParseAmount"`
	Percent bool
}

func (NextPrevMsg) Aliases

func (NextPrevMsg) Aliases() []string

func (NextPrevMsg) Context

func (NextPrevMsg) Description

func (NextPrevMsg) Description() string

func (NextPrevMsg) Execute

func (np NextPrevMsg) Execute(args []string) error

func (*NextPrevMsg) ParseAmount

func (np *NextPrevMsg) ParseAmount(arg string) error

type NextPrevResult

type NextPrevResult struct{}

func (NextPrevResult) Aliases

func (NextPrevResult) Aliases() []string

func (NextPrevResult) Context

func (NextPrevResult) Description

func (NextPrevResult) Description() string

func (NextPrevResult) Execute

func (NextPrevResult) Execute(args []string) error

type Query

type Query struct {
	Account string `opt:"-a" complete:"CompleteAccount" desc:"Account name."`
	Name    string `opt:"-n" desc:"Force name of virtual folder."`
	Force   bool   `opt:"-f" desc:"Replace existing query if any."`
	Query   string `opt:"..." complete:"CompleteNotmuch" desc:"Notmuch query."`
}

func (Query) Aliases

func (Query) Aliases() []string

func (Query) CompleteAccount

func (Query) CompleteAccount(arg string) []string

func (*Query) CompleteNotmuch

func (*Query) CompleteNotmuch(arg string) []string

func (Query) Context

func (Query) Context() commands.CommandContext

func (Query) Description

func (Query) Description() string

func (Query) Execute

func (q Query) Execute([]string) error

type Recover

type Recover struct {
	Force  bool   `opt:"-f" desc:"Delete recovered file after opening the composer."`
	Edit   bool   `opt:"-e" desc:"Force [compose].edit-headers = true."`
	NoEdit bool   `opt:"-E" desc:"Force [compose].edit-headers = false."`
	File   string `opt:"file" complete:"CompleteFile" desc:"Recover file path."`
}

func (Recover) Aliases

func (Recover) Aliases() []string

func (*Recover) CompleteFile

func (*Recover) CompleteFile(arg string) []string

func (Recover) Context

func (Recover) Context() commands.CommandContext

func (Recover) Description

func (Recover) Description() string

func (Recover) Execute

func (r Recover) Execute(args []string) error

func (Recover) Options

func (Recover) Options() string

type RemoveDir

type RemoveDir struct {
	Force  bool   `opt:"-f" desc:"Remove the directory even if it contains messages."`
	Folder string `opt:"folder" complete:"CompleteFolder" required:"false" desc:"Folder name."`
}

func (RemoveDir) Aliases

func (RemoveDir) Aliases() []string

func (RemoveDir) CompleteFolder

func (RemoveDir) CompleteFolder(arg string) []string

func (RemoveDir) Context

func (RemoveDir) Context() commands.CommandContext

func (RemoveDir) Description

func (RemoveDir) Description() string

func (RemoveDir) Execute

func (r RemoveDir) Execute(args []string) error

type SearchFilter

type SearchFilter struct {
	Read         bool                 `opt:"-r" action:"ParseRead" desc:"Search for read messages."`
	Unread       bool                 `opt:"-u" action:"ParseUnread" desc:"Search for unread messages."`
	Body         bool                 `opt:"-b" desc:"Search in the body of the messages."`
	All          bool                 `opt:"-a" desc:"Search in the entire text of the messages."`
	UseExtension bool                 `opt:"-e" desc:"Use custom search backend extension."`
	Headers      textproto.MIMEHeader `opt:"-H" action:"ParseHeader" metavar:"<header>:<value>" desc:"Search for messages with the specified header."`
	WithFlags    models.Flags         `opt:"-x" action:"ParseFlag" complete:"CompleteFlag" desc:"Search messages with specified flag."`
	WithoutFlags models.Flags         `opt:"-X" action:"ParseNotFlag" complete:"CompleteFlag" desc:"Search messages without specified flag."`
	To           []string             `opt:"-t" action:"ParseTo" complete:"CompleteAddress" desc:"Search for messages To:<address>."`
	From         []string             `opt:"-f" action:"ParseFrom" complete:"CompleteAddress" desc:"Search for messages From:<address>."`
	Cc           []string             `opt:"-c" action:"ParseCc" complete:"CompleteAddress" desc:"Search for messages Cc:<address>."`
	StartDate    time.Time            `opt:"-d" action:"ParseDate" complete:"CompleteDate" desc:"Search for messages within a particular date range."`
	EndDate      time.Time
	Terms        string `opt:"..." required:"false" complete:"CompleteTerms" desc:"Search term."`
}

func (SearchFilter) Aliases

func (SearchFilter) Aliases() []string

func (*SearchFilter) CompleteAddress

func (*SearchFilter) CompleteAddress(arg string) []string

func (*SearchFilter) CompleteDate

func (*SearchFilter) CompleteDate(arg string) []string

func (*SearchFilter) CompleteFlag

func (*SearchFilter) CompleteFlag(arg string) []string

func (*SearchFilter) CompleteTerms

func (s *SearchFilter) CompleteTerms(arg string) []string

func (SearchFilter) Context

func (SearchFilter) Description

func (SearchFilter) Description() string

func (SearchFilter) Execute

func (s SearchFilter) Execute(args []string) error

func (*SearchFilter) ParseCc

func (s *SearchFilter) ParseCc(arg string) error

func (*SearchFilter) ParseDate

func (s *SearchFilter) ParseDate(arg string) error

func (*SearchFilter) ParseFlag

func (s *SearchFilter) ParseFlag(arg string) error

func (*SearchFilter) ParseFrom

func (s *SearchFilter) ParseFrom(arg string) error

func (*SearchFilter) ParseHeader

func (s *SearchFilter) ParseHeader(arg string) error

func (*SearchFilter) ParseNotFlag

func (s *SearchFilter) ParseNotFlag(arg string) error

func (*SearchFilter) ParseRead

func (s *SearchFilter) ParseRead(arg string) error

func (*SearchFilter) ParseTo

func (s *SearchFilter) ParseTo(arg string) error

func (*SearchFilter) ParseUnread

func (s *SearchFilter) ParseUnread(arg string) error

type SelectMessage

type SelectMessage struct {
	Index int `opt:"n"`
}

func (SelectMessage) Aliases

func (SelectMessage) Aliases() []string

func (SelectMessage) Context

func (SelectMessage) Description

func (SelectMessage) Description() string

func (SelectMessage) Execute

func (s SelectMessage) Execute(args []string) error

type Sort

type Sort struct {
	Unused struct{} `opt:"-"`
	// these fields are only used for completion
	Reverse  bool     `opt:"-r" desc:"Sort in the reverse order."`
	Criteria []string `opt:"criteria" complete:"CompleteCriteria" desc:"Sort criterion."`
}

func (Sort) Aliases

func (Sort) Aliases() []string

func (*Sort) CompleteCriteria

func (*Sort) CompleteCriteria(arg string) []string

func (Sort) Context

func (Sort) Context() commands.CommandContext

func (Sort) Description

func (Sort) Description() string

func (Sort) Execute

func (Sort) Execute(args []string) error

type Split

type Split struct {
	Size  int `opt:"n" required:"false" action:"ParseSize"`
	Delta bool
}

func (Split) Aliases

func (Split) Aliases() []string

func (Split) Context

func (Split) Context() commands.CommandContext

func (Split) Description

func (Split) Description() string

func (Split) Execute

func (s Split) Execute(args []string) error

func (*Split) ParseSize

func (s *Split) ParseSize(arg string) error

type ViewMessage

type ViewMessage struct {
	Peek       bool `opt:"-p" desc:"Peek message without marking it as read."`
	Background bool `opt:"-b" desc:"Open message in a background tab."`
}

func (ViewMessage) Aliases

func (ViewMessage) Aliases() []string

func (ViewMessage) Context

func (ViewMessage) Description

func (ViewMessage) Description() string

func (ViewMessage) Execute

func (v ViewMessage) Execute(args []string) error

Jump to

Keyboard shortcuts

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