msg

package
v0.0.0-...-0798a42 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ARCHIVE_FLAT  = "flat"
	ARCHIVE_YEAR  = "year"
	ARCHIVE_MONTH = "month"
)

Variables

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) Aliases

func (Archive) Aliases() []string

func (Archive) CompleteMFS

func (Archive) CompleteMFS(arg string) []string

func (*Archive) CompleteType

func (*Archive) CompleteType(arg string) []string

func (Archive) Context

func (Archive) Context() commands.CommandContext

func (Archive) Execute

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

func (*Archive) ParseArchiveType

func (a *Archive) ParseArchiveType(arg string) error

func (*Archive) ParseMFS

func (a *Archive) ParseMFS(arg string) error

type Bounce

type Bounce struct {
	Account string   `opt:"-A" complete:"CompleteAccount"`
	To      []string `opt:"..." required:"true" complete:"CompleteTo"`
}

func (Bounce) Aliases

func (Bounce) Aliases() []string

func (*Bounce) CompleteAccount

func (*Bounce) CompleteAccount(arg string) []string

func (*Bounce) CompleteTo

func (*Bounce) CompleteTo(arg string) []string

func (Bounce) Context

func (Bounce) Context() commands.CommandContext

func (Bounce) Execute

func (b Bounce) Execute(args []string) error

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) Aliases

func (Copy) Aliases() []string

func (Copy) CallBack

func (c Copy) CallBack(msg types.WorkerMessage, uids []uint32, store *lib.MessageStore)

func (*Copy) CompleteAccount

func (*Copy) CompleteAccount(arg string) []string

func (*Copy) CompleteFolder

func (c *Copy) CompleteFolder(arg string) []string

func (Copy) CompleteMFS

func (Copy) CompleteMFS(arg string) []string

func (Copy) Context

func (Copy) Context() commands.CommandContext

func (Copy) Execute

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

func (*Copy) ParseMFS

func (c *Copy) ParseMFS(arg string) error

type Delete

type Delete struct {
	MultiFileStrategy *types.MultiFileStrategy `opt:"-m" action:"ParseMFS" complete:"CompleteMFS"`
}

func (Delete) Aliases

func (Delete) Aliases() []string

func (Delete) CompleteMFS

func (Delete) CompleteMFS(arg string) []string

func (Delete) Context

func (Delete) Context() commands.CommandContext

func (Delete) Execute

func (d Delete) Execute(args []string) error

func (*Delete) ParseMFS

func (d *Delete) ParseMFS(arg string) error

type Envelope

type Envelope struct {
	Header bool   `opt:"-h"`
	Format string `opt:"-s" default:"%-20.20s: %s"`
}

func (Envelope) Aliases

func (Envelope) Aliases() []string

func (Envelope) Context

func (Envelope) Context() commands.CommandContext

func (Envelope) Execute

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

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) Aliases

func (FlagMsg) Aliases() []string

func (*FlagMsg) CompleteFlag

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

func (FlagMsg) Context

func (FlagMsg) Context() commands.CommandContext

func (FlagMsg) Execute

func (f FlagMsg) Execute(args []string) error

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.

func (*FlagMsg) ParseFlag

func (f *FlagMsg) ParseFlag(arg string) error

type Fold

type Fold struct {
	All    bool `opt:"-a"`
	Toggle bool `opt:"-t"`
}

func (Fold) Aliases

func (Fold) Aliases() []string

func (Fold) Context

func (Fold) Context() commands.CommandContext

func (Fold) Execute

func (f Fold) Execute(args []string) error

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) Aliases

func (Mark) Aliases() []string

func (Mark) Context

func (Mark) Context() commands.CommandContext

func (Mark) Execute

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

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) 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) Aliases

func (Move) Aliases() []string

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) CompleteAccount(arg string) []string

func (*Move) CompleteFolder

func (m *Move) CompleteFolder(arg string) []string

func (Move) CompleteMFS

func (Move) CompleteMFS(arg string) []string

func (Move) Context

func (Move) Context() commands.CommandContext

func (Move) Execute

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

func (*Move) ParseMFS

func (m *Move) ParseMFS(arg string) error

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) Aliases

func (Pipe) Aliases() []string

func (Pipe) Context

func (Pipe) Context() commands.CommandContext

func (Pipe) Execute

func (p Pipe) Execute(args []string) error

func (Pipe) Run

func (p Pipe) Run(cb func()) error

type Recall

type Recall struct {
	Force  bool `opt:"-f"`
	Edit   bool `opt:"-e"`
	NoEdit bool `opt:"-E"`
}

func (Recall) Aliases

func (Recall) Aliases() []string

func (Recall) Context

func (Recall) Context() commands.CommandContext

func (Recall) Execute

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

type ToggleThreadContext

type ToggleThreadContext struct{}

func (ToggleThreadContext) Aliases

func (ToggleThreadContext) Aliases() []string

func (ToggleThreadContext) Context

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) Execute

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

type Unsubscribe

type Unsubscribe struct {
	Edit   bool `opt:"-e"`
	NoEdit bool `opt:"-E"`
}

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) Execute

func (u Unsubscribe) Execute(args []string) error

Execute runs the Unsubscribe command

Jump to

Keyboard shortcuts

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