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 (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 []uint32, 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 (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 []uint32, ...)
- 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 (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"` Type string `opt:"type" action:"ParseArchiveType" metavar:"flat|year|month" complete:"CompleteType"` }
func (Archive) CompleteMFS ¶
func (*Archive) CompleteType ¶
func (Archive) Context ¶
func (Archive) Context() commands.CommandContext
func (*Archive) ParseArchiveType ¶
type Bounce ¶
type Bounce struct { Account string `opt:"-A" complete:"CompleteAccount"` To []string `opt:"..." required:"true" complete:"CompleteTo"` }
func (*Bounce) CompleteAccount ¶
func (*Bounce) CompleteTo ¶
func (Bounce) Context ¶
func (Bounce) Context() commands.CommandContext
type Copy ¶
type Copy struct { CreateFolders bool `opt:"-p"` Account string `opt:"-a" complete:"CompleteAccount"` MultiFileStrategy *types.MultiFileStrategy `opt:"-m" action:"ParseMFS" complete:"CompleteMFS"` Folder string `opt:"folder" complete:"CompleteFolder"` }
func (Copy) CallBack ¶
func (c Copy) CallBack(msg types.WorkerMessage, uids []uint32, store *lib.MessageStore)
func (*Copy) CompleteAccount ¶
func (*Copy) CompleteFolder ¶
func (Copy) CompleteMFS ¶
func (Copy) Context ¶
func (Copy) Context() commands.CommandContext
type Delete ¶
type Delete struct {
MultiFileStrategy *types.MultiFileStrategy `opt:"-m" action:"ParseMFS" complete:"CompleteMFS"`
}
func (Delete) CompleteMFS ¶
func (Delete) Context ¶
func (Delete) Context() commands.CommandContext
type FlagMsg ¶
type FlagMsg struct { Toggle bool `opt:"-t"` Answered bool `opt:"-a" aliases:"flag,unflag"` Flag models.Flags `opt:"-x" aliases:"flag,unflag" action:"ParseFlag" complete:"CompleteFlag"` FlagName string }
func (*FlagMsg) CompleteFlag ¶
func (FlagMsg) Context ¶
func (FlagMsg) Context() commands.CommandContext
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 Mark ¶
type Mark struct { All bool `opt:"-a" aliases:"mark,unmark"` Toggle bool `opt:"-t" aliases:"mark,unmark"` Visual bool `opt:"-v" aliases:"mark,unmark"` VisualClear bool `opt:"-V" aliases:"mark,unmark"` Thread bool `opt:"-T" aliases:"mark,unmark"` }
func (Mark) Context ¶
func (Mark) Context() commands.CommandContext
type ModifyLabels ¶
type ModifyLabels struct {
Labels []string `opt:"..." metavar:"[+-]<label>" complete:"CompleteLabels"`
}
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) Execute ¶
func (m ModifyLabels) Execute(args []string) error
type Move ¶
type Move struct { CreateFolders bool `opt:"-p"` Account string `opt:"-a" complete:"CompleteAccount"` MultiFileStrategy *types.MultiFileStrategy `opt:"-m" action:"ParseMFS" complete:"CompleteMFS"` Folder string `opt:"folder" complete:"CompleteFolder"` }
func (Move) CallBack ¶
func (m Move) CallBack( msg types.WorkerMessage, acct *app.AccountView, uids []uint32, 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
type Pipe ¶
type Pipe struct { Background bool `opt:"-b"` Silent bool `opt:"-s"` Full bool `opt:"-m"` Part bool `opt:"-p"` Command string `opt:"..."` }
func (Pipe) Context ¶
func (Pipe) Context() commands.CommandContext
type ToggleThreadContext ¶
type ToggleThreadContext struct{}
func (ToggleThreadContext) Aliases ¶
func (ToggleThreadContext) Aliases() []string
func (ToggleThreadContext) Context ¶
func (ToggleThreadContext) Context() commands.CommandContext
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) Execute ¶
func (ToggleThreads) Execute(args []string) error
type Unsubscribe ¶
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) Execute ¶
func (u Unsubscribe) Execute(args []string) error
Execute runs the Unsubscribe command
Click to show internal directories.
Click to hide internal directories.