state

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountState

type AccountState struct {
	Connected bool
	// contains filtered or unexported fields
}

type Composer

type Composer interface {
	AddAttachment(string)
}

type DataSetter

type DataSetter interface {
	Data() models.TemplateData
	SetHeaders(*mail.Header, *models.OriginalMail)
	SetInfo(*models.MessageInfo, int, bool)
	SetVisual(bool)
	SetThreading(string, bool, int, int, bool, bool)
	SetComposer(Composer)
	SetAccount(*config.AccountConfig)
	SetFolder(*models.Directory)
	SetRUE([]string, func(string) (int, int, int))
	SetState(s *AccountState)
	SetPendingKeys([]config.KeyStroke)
}

func NewDataSetter

func NewDataSetter() DataSetter

type SetStateFunc

type SetStateFunc func(s *AccountState, folder string)

func ConnectionActivity

func ConnectionActivity(desc string) SetStateFunc

func FilterActivity

func FilterActivity(str string) SetStateFunc

func FilterResult

func FilterResult(str string) SetStateFunc

func Passthrough

func Passthrough(on bool) SetStateFunc
func Search(desc string) SetStateFunc

func SearchFilterClear

func SearchFilterClear() SetStateFunc

func SetConnected

func SetConnected(state bool) SetStateFunc

func Sorting

func Sorting(on bool) SetStateFunc

func Threading

func Threading(on bool) SetStateFunc

type ThreadInfo

type ThreadInfo struct {
	SameSubject bool
	Prefix      string
	Count       int
	Unread      int
	Folded      bool
	Context     bool
}

Jump to

Keyboard shortcuts

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