Documentation ¶
Index ¶
- type Align
- type ChangeFolder
- func (ChangeFolder) Aliases() []string
- func (c *ChangeFolder) CompleteAccount(arg string) []string
- func (c *ChangeFolder) CompleteFolderAndNotmuch(arg string) []string
- func (ChangeFolder) Context() commands.CommandContext
- func (ChangeFolder) Description() string
- func (c ChangeFolder) Execute([]string) error
- type CheckMail
- type Clear
- type Compose
- type Connection
- type ExpandCollapseFolder
- type ExportMbox
- type ImportMbox
- type MakeDir
- type NextPrevFolder
- type NextPrevMsg
- type NextPrevResult
- type Query
- type Recover
- type RemoveDir
- type SearchFilter
- func (SearchFilter) Aliases() []string
- func (*SearchFilter) CompleteAddress(arg string) []string
- func (*SearchFilter) CompleteDate(arg string) []string
- func (*SearchFilter) CompleteFlag(arg string) []string
- func (s *SearchFilter) CompleteTerms(arg string) []string
- func (SearchFilter) Context() commands.CommandContext
- func (SearchFilter) Description() string
- func (s SearchFilter) Execute(args []string) error
- func (s *SearchFilter) ParseCc(arg string) error
- func (s *SearchFilter) ParseDate(arg string) error
- func (s *SearchFilter) ParseFlag(arg string) error
- func (s *SearchFilter) ParseFrom(arg string) error
- func (s *SearchFilter) ParseHeader(arg string) error
- func (s *SearchFilter) ParseNotFlag(arg string) error
- func (s *SearchFilter) ParseRead(arg string) error
- func (s *SearchFilter) ParseTo(arg string) error
- func (s *SearchFilter) ParseUnread(arg string) error
- type SelectMessage
- type Sort
- type Split
- type ViewMessage
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) CompletePos ¶
func (Align) Context ¶
func (Align) Context() commands.CommandContext
func (Align) Description ¶
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) Context() commands.CommandContext
func (ChangeFolder) Description ¶
func (ChangeFolder) Description() string
func (ChangeFolder) Execute ¶
func (c ChangeFolder) Execute([]string) error
type CheckMail ¶
type CheckMail struct{}
func (CheckMail) Context ¶
func (CheckMail) Context() commands.CommandContext
func (CheckMail) Description ¶
type Clear ¶
type Clear struct {
Selected bool `opt:"-s" desc:"Select first message after clearing."`
}
func (Clear) Context ¶
func (Clear) Context() commands.CommandContext
func (Clear) Description ¶
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) CompleteTemplate ¶
func (Compose) Context ¶
func (Compose) Context() commands.CommandContext
func (Compose) Description ¶
func (*Compose) ParseHeader ¶
type Connection ¶
type Connection struct{}
func (Connection) Aliases ¶
func (Connection) Aliases() []string
func (Connection) Context ¶
func (Connection) Context() commands.CommandContext
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) Context() commands.CommandContext
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) Context() commands.CommandContext
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) Context() commands.CommandContext
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) CompleteFolder ¶
func (MakeDir) Context ¶
func (MakeDir) Context() commands.CommandContext
func (MakeDir) Description ¶
type NextPrevFolder ¶
type NextPrevFolder struct {
Offset int `opt:"n" default:"1"`
}
func (NextPrevFolder) Aliases ¶
func (NextPrevFolder) Aliases() []string
func (NextPrevFolder) Context ¶
func (NextPrevFolder) Context() commands.CommandContext
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) Context() commands.CommandContext
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) Context() commands.CommandContext
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) CompleteAccount ¶
func (*Query) CompleteNotmuch ¶
func (Query) Context ¶
func (Query) Context() commands.CommandContext
func (Query) Description ¶
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) CompleteFile ¶
func (Recover) Context ¶
func (Recover) Context() commands.CommandContext
func (Recover) Description ¶
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) CompleteFolder ¶
func (RemoveDir) Context ¶
func (RemoveDir) Context() commands.CommandContext
func (RemoveDir) Description ¶
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) Context() commands.CommandContext
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) Context() commands.CommandContext
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) CompleteCriteria ¶
func (Sort) Context ¶
func (Sort) Context() commands.CommandContext
func (Sort) Description ¶
type Split ¶
func (Split) Context ¶
func (Split) Context() commands.CommandContext
func (Split) Description ¶
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) Context() commands.CommandContext
func (ViewMessage) Description ¶
func (ViewMessage) Description() string
func (ViewMessage) Execute ¶
func (v ViewMessage) Execute(args []string) error
Click to show internal directories.
Click to hide internal directories.