Documentation
¶
Index ¶
- Constants
- Variables
- type Archive
- func (Archive) Aliases() []string
- func (Archive) CompleteMFS(arg string) []string
- func (*Archive) CompleteType(arg string) []string
- func (Archive) Context() commands.CommandContext
- func (Archive) Description() string
- func (a Archive) Execute(args []string) error
- func (a *Archive) ParseArchiveType(arg string) error
- func (a *Archive) ParseMFS(arg string) error
- type Bounce
- type Copy
- func (Copy) Aliases() []string
- func (c Copy) CallBack(msg types.WorkerMessage, uids []models.UID, store *lib.MessageStore)
- func (*Copy) CompleteAccount(arg string) []string
- func (c *Copy) CompleteFolder(arg string) []string
- func (Copy) CompleteMFS(arg string) []string
- func (Copy) Context() commands.CommandContext
- func (Copy) Description() string
- func (c Copy) Execute(args []string) error
- func (c *Copy) ParseMFS(arg string) error
- type Delete
- type Envelope
- type FlagMsg
- type Fold
- type Mark
- type ModifyLabels
- type Move
- func (Move) Aliases() []string
- func (m Move) CallBack(msg types.WorkerMessage, acct *app.AccountView, uids []models.UID, ...)
- func (*Move) CompleteAccount(arg string) []string
- func (m *Move) CompleteFolder(arg string) []string
- func (Move) CompleteMFS(arg string) []string
- func (Move) Context() commands.CommandContext
- func (Move) Description() string
- func (m Move) Execute(args []string) error
- func (m *Move) ParseMFS(arg string) error
- type Pipe
- type Recall
- type ToggleThreadContext
- type ToggleThreads
- type Unsubscribe
Constants ¶
View Source
const ( ARCHIVE_FLAT = "flat" ARCHIVE_YEAR = "year" ARCHIVE_MONTH = "month" )
Variables ¶
View Source
var ARCHIVE_TYPES = []string{ARCHIVE_FLAT, ARCHIVE_YEAR, ARCHIVE_MONTH}
Functions ¶
This section is empty.
Types ¶
type Archive ¶
type Archive struct { MultiFileStrategy *types.MultiFileStrategy `opt:"-m" action:"ParseMFS" complete:"CompleteMFS" desc:"Multi-file strategy."` Type string `opt:"type" action:"ParseArchiveType" metavar:"flat|year|month" complete:"CompleteType" desc:"Archiving scheme."` }
func (Archive) CompleteMFS ¶
func (*Archive) CompleteType ¶
func (Archive) Context ¶
func (Archive) Context() commands.CommandContext
func (Archive) Description ¶
func (*Archive) ParseArchiveType ¶
type Bounce ¶
type Bounce struct { Account string `opt:"-A" complete:"CompleteAccount" desc:"Account from which to re-send the message."` To []string `opt:"..." required:"true" complete:"CompleteTo" desc:"Recipient from address book."` }
func (*Bounce) CompleteAccount ¶
func (*Bounce) CompleteTo ¶
func (Bounce) Context ¶
func (Bounce) Context() commands.CommandContext
func (Bounce) Description ¶
type Copy ¶
type Copy struct { CreateFolders bool `opt:"-p" desc:"Create folder if it does not exist."` Decrypt bool `opt:"-d" desc:"Decrypt the message before copying."` Account string `opt:"-a" complete:"CompleteAccount" desc:"Copy to the specified account."` MultiFileStrategy *types.MultiFileStrategy `opt:"-m" action:"ParseMFS" complete:"CompleteMFS" desc:"Multi-file strategy."` Folder string `opt:"folder" complete:"CompleteFolder" desc:"Target folder."` }
func (Copy) CallBack ¶
func (c Copy) CallBack(msg types.WorkerMessage, uids []models.UID, store *lib.MessageStore)
func (*Copy) CompleteAccount ¶
func (*Copy) CompleteFolder ¶
func (Copy) CompleteMFS ¶
func (Copy) Context ¶
func (Copy) Context() commands.CommandContext
func (Copy) Description ¶
type Delete ¶
type Delete struct {
MultiFileStrategy *types.MultiFileStrategy `opt:"-m" action:"ParseMFS" complete:"CompleteMFS" desc:"Multi-file strategy."`
}
func (Delete) CompleteMFS ¶
func (Delete) Context ¶
func (Delete) Context() commands.CommandContext
func (Delete) Description ¶
type Envelope ¶
type Envelope struct { Header bool `opt:"-h" desc:"Show all header fields."` Format string `opt:"-s" default:"%-20.20s: %s" desc:"Format specifier."` }
func (Envelope) Context ¶
func (Envelope) Context() commands.CommandContext
func (Envelope) Description ¶
type FlagMsg ¶
type FlagMsg struct { Toggle bool `opt:"-t" desc:"Toggle between set and unset."` Answered bool `opt:"-a" aliases:"flag,unflag" desc:"Set/unset the answered flag."` Forwarded bool `opt:"-f" aliases:"flag,unflag" desc:"Set/unset the forwarded flag."` Flag models.Flags `opt:"-x" aliases:"flag,unflag" action:"ParseFlag" complete:"CompleteFlag" desc:"Flag name."` FlagName string }
func (*FlagMsg) CompleteFlag ¶
func (FlagMsg) Context ¶
func (FlagMsg) Context() commands.CommandContext
func (FlagMsg) Description ¶
func (FlagMsg) Execute ¶
If this was called as 'flag' or 'unflag', without the toggle (-t) option, then it will flag the corresponding messages with the given flag. If the toggle option was given, it will individually toggle the given flag for the corresponding messages.
If this was called as 'read' or 'unread', it has the same effect as 'flag' or 'unflag', respectively, but the 'Seen' flag is affected.
type Fold ¶
type Fold struct { All bool `opt:"-a" desc:"Fold/unfold all threads."` Toggle bool `opt:"-t" desc:"Toggle between folded/unfolded."` }
func (Fold) Context ¶
func (Fold) Context() commands.CommandContext
func (Fold) Description ¶
type Mark ¶
type Mark struct { All bool `opt:"-a" aliases:"mark,unmark" desc:"Mark all messages in current folder."` Toggle bool `opt:"-t" aliases:"mark,unmark" desc:"Toggle the marked state."` Visual bool `opt:"-v" aliases:"mark,unmark" desc:"Enter / leave visual mark mode."` VisualClear bool `opt:"-V" aliases:"mark,unmark" desc:"Same as -v but does not clear existing selection."` Thread bool `opt:"-T" aliases:"mark,unmark" desc:"Mark all messages from the selected thread."` }
func (Mark) Context ¶
func (Mark) Context() commands.CommandContext
func (Mark) Description ¶
type ModifyLabels ¶
type ModifyLabels struct {
Labels []string `opt:"..." metavar:"[+-]<label>" complete:"CompleteLabels" desc:"Message label."`
}
func (ModifyLabels) Aliases ¶
func (ModifyLabels) Aliases() []string
func (*ModifyLabels) CompleteLabels ¶
func (*ModifyLabels) CompleteLabels(arg string) []string
func (ModifyLabels) Context ¶
func (ModifyLabels) Context() commands.CommandContext
func (ModifyLabels) Description ¶
func (ModifyLabels) Description() string
func (ModifyLabels) Execute ¶
func (m ModifyLabels) Execute(args []string) error
type Move ¶
type Move struct { CreateFolders bool `opt:"-p" desc:"Create missing folders if required."` Account string `opt:"-a" complete:"CompleteAccount" desc:"Move to specified account."` MultiFileStrategy *types.MultiFileStrategy `opt:"-m" action:"ParseMFS" complete:"CompleteMFS" desc:"Multi-file strategy."` Folder string `opt:"folder" complete:"CompleteFolder" desc:"Target folder."` }
func (Move) CallBack ¶
func (m Move) CallBack( msg types.WorkerMessage, acct *app.AccountView, uids []models.UID, next *models.MessageInfo, marker marker.Marker, timeout bool, )
func (*Move) CompleteAccount ¶
func (*Move) CompleteFolder ¶
func (Move) CompleteMFS ¶
func (Move) Context ¶
func (Move) Context() commands.CommandContext
func (Move) Description ¶
type Pipe ¶
type Pipe struct { Background bool `opt:"-b" desc:"Run the command in the background."` Silent bool `opt:"-s" desc:"Silently close the terminal tab after the command exits."` Full bool `opt:"-m" desc:"Pipe the full message."` Decrypt bool `opt:"-d" desc:"Decrypt the full message before piping."` Part bool `opt:"-p" desc:"Only pipe the selected message part."` Command string `opt:"..."` }
func (Pipe) Context ¶
func (Pipe) Context() commands.CommandContext
func (Pipe) Description ¶
type Recall ¶
type Recall struct { Force bool `opt:"-f" desc:"Force recall if not in postpone directory."` Edit bool `opt:"-e" desc:"Force [compose].edit-headers = true."` NoEdit bool `opt:"-E" desc:"Force [compose].edit-headers = false."` SkipEditor bool `opt:"-s" desc:"Skip the editor and go directly to the review screen."` }
func (Recall) Context ¶
func (Recall) Context() commands.CommandContext
func (Recall) Description ¶
type ToggleThreadContext ¶
type ToggleThreadContext struct{}
func (ToggleThreadContext) Aliases ¶
func (ToggleThreadContext) Aliases() []string
func (ToggleThreadContext) Context ¶
func (ToggleThreadContext) Context() commands.CommandContext
func (ToggleThreadContext) Description ¶
func (ToggleThreadContext) Description() string
func (ToggleThreadContext) Execute ¶
func (ToggleThreadContext) Execute(args []string) error
type ToggleThreads ¶
type ToggleThreads struct{}
func (ToggleThreads) Aliases ¶
func (ToggleThreads) Aliases() []string
func (ToggleThreads) Context ¶
func (ToggleThreads) Context() commands.CommandContext
func (ToggleThreads) Description ¶
func (ToggleThreads) Description() string
func (ToggleThreads) Execute ¶
func (ToggleThreads) Execute(args []string) error
type Unsubscribe ¶
type Unsubscribe struct { Edit bool `opt:"-e" desc:"Force [compose].edit-headers = true."` NoEdit bool `opt:"-E" desc:"Force [compose].edit-headers = false."` SkipEditor bool `opt:"-s" desc:"Skip the editor and go directly to the review screen."` }
Unsubscribe helps people unsubscribe from mailing lists by way of the List-Unsubscribe header.
func (Unsubscribe) Aliases ¶
func (Unsubscribe) Aliases() []string
Aliases returns a list of aliases for the :unsubscribe command
func (Unsubscribe) Context ¶
func (Unsubscribe) Context() commands.CommandContext
func (Unsubscribe) Description ¶
func (Unsubscribe) Description() string
func (Unsubscribe) Execute ¶
func (u Unsubscribe) Execute(args []string) error
Execute runs the Unsubscribe command
Click to show internal directories.
Click to hide internal directories.