Documentation
¶
Index ¶
- Constants
- type AccountView
- func (acct *AccountView) AccountConfig() *config.AccountConfig
- func (acct *AccountView) Children() []ui.Drawable
- func (acct *AccountView) Directories() *DirectoryList
- func (acct *AccountView) Draw(ctx *ui.Context)
- func (acct *AccountView) Focus(focus bool)
- func (acct *AccountView) Invalidate()
- func (acct *AccountView) Logger() *log.Logger
- func (acct *AccountView) Messages() *MessageList
- func (acct *AccountView) Name() string
- func (acct *AccountView) OnInvalidate(onInvalidate func(d ui.Drawable))
- func (acct *AccountView) SelectedAccount() *AccountView
- func (acct *AccountView) SelectedMessage() *types.MessageInfo
- func (acct *AccountView) Store() *lib.MessageStore
- func (acct *AccountView) Tick() bool
- func (acct *AccountView) Worker() *types.Worker
- type AccountWizard
- type Aerc
- func (aerc *Aerc) BeginExCommand()
- func (aerc *Aerc) Children() []ui.Drawable
- func (aerc *Aerc) Config() *config.AercConfig
- func (aerc *Aerc) Draw(ctx *libui.Context)
- func (aerc *Aerc) Event(event tcell.Event) bool
- func (aerc *Aerc) Focus(focus bool)
- func (aerc *Aerc) Invalidate()
- func (aerc *Aerc) NewTab(drawable ui.Drawable, name string) *ui.Tab
- func (aerc *Aerc) NextTab()
- func (aerc *Aerc) OnInvalidate(onInvalidate func(d libui.Drawable))
- func (aerc *Aerc) PrevTab()
- func (aerc *Aerc) PushError(text string)
- func (aerc *Aerc) PushStatus(text string, expiry time.Duration) *StatusMessage
- func (aerc *Aerc) RemoveTab(tab ui.Drawable)
- func (aerc *Aerc) SelectedAccount() *AccountView
- func (aerc *Aerc) SelectedTab() ui.Drawable
- func (aerc *Aerc) SetStatus(status string) *StatusMessage
- func (aerc *Aerc) Tick() bool
- type Composer
- func (c *Composer) Bindings() string
- func (c *Composer) Close()
- func (c *Composer) Config() *config.AccountConfig
- func (c *Composer) Defaults(defaults map[string]string) *Composer
- func (c *Composer) Draw(ctx *ui.Context)
- func (c *Composer) Event(event tcell.Event) bool
- func (c *Composer) Focus(focus bool)
- func (c *Composer) FocusTerminal() *Composer
- func (c *Composer) Invalidate()
- func (c *Composer) NextField()
- func (c *Composer) OnInvalidate(fn func(d ui.Drawable))
- func (c *Composer) OnSubjectChange(fn func(subject string))
- func (c *Composer) PrepareHeader() (*mail.Header, []string, error)
- func (c *Composer) PrevField()
- func (c *Composer) SetContents(reader io.Reader) *Composer
- func (c *Composer) ShowTerminal()
- func (c *Composer) Worker() *types.Worker
- func (c *Composer) WriteMessage(header *mail.Header, writer io.Writer) error
- type DirectoryList
- func (dirlist *DirectoryList) Draw(ctx *ui.Context)
- func (dirlist *DirectoryList) Invalidate()
- func (dirlist *DirectoryList) Next()
- func (dirlist *DirectoryList) Prev()
- func (dirlist *DirectoryList) Select(name string)
- func (dirlist *DirectoryList) Selected() string
- func (dirlist *DirectoryList) UpdateList(done func(dirs []string))
- type ExLine
- type HeaderView
- type MessageList
- func (ml *MessageList) Draw(ctx *ui.Context)
- func (ml *MessageList) Empty() bool
- func (ml *MessageList) Height() int
- func (ml *MessageList) Invalidate()
- func (ml *MessageList) Next()
- func (ml *MessageList) Prev()
- func (ml *MessageList) Select(index int)
- func (ml *MessageList) Selected() *types.MessageInfo
- func (ml *MessageList) SetStore(store *lib.MessageStore)
- func (ml *MessageList) Store() *lib.MessageStore
- type MessageViewer
- func (mv *MessageViewer) CurrentPart() *PartInfo
- func (mv *MessageViewer) Draw(ctx *ui.Context)
- func (mv *MessageViewer) Event(event tcell.Event) bool
- func (mv *MessageViewer) Focus(focus bool)
- func (mv *MessageViewer) Invalidate()
- func (mv *MessageViewer) NextPart()
- func (mv *MessageViewer) OnInvalidate(fn func(d ui.Drawable))
- func (mv *MessageViewer) PreviousPart()
- func (mv *MessageViewer) SelectedAccount() *AccountView
- func (mv *MessageViewer) SelectedMessage() *types.MessageInfo
- func (mv *MessageViewer) Store() *lib.MessageStore
- type PartInfo
- type PartSwitcher
- type PartViewer
- type ProvidesMessage
- type Spinner
- type StatusLine
- type StatusMessage
- type TabHost
- type Terminal
Constants ¶
View Source
const ( CONFIGURE_BASICS = iota CONFIGURE_INCOMING = iota CONFIGURE_OUTGOING = iota CONFIGURE_COMPLETE = iota )
View Source
const ( IMAP_OVER_TLS = iota IMAP_STARTTLS = iota IMAP_INSECURE = iota )
View Source
const ( SMTP_OVER_TLS = iota SMTP_STARTTLS = iota SMTP_INSECURE = iota )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountView ¶
type AccountView struct {
// contains filtered or unexported fields
}
func NewAccountView ¶
func NewAccountView(conf *config.AercConfig, acct *config.AccountConfig, logger *log.Logger, host TabHost) *AccountView
func (*AccountView) AccountConfig ¶
func (acct *AccountView) AccountConfig() *config.AccountConfig
func (*AccountView) Children ¶
func (acct *AccountView) Children() []ui.Drawable
func (*AccountView) Directories ¶
func (acct *AccountView) Directories() *DirectoryList
func (*AccountView) Draw ¶
func (acct *AccountView) Draw(ctx *ui.Context)
func (*AccountView) Focus ¶
func (acct *AccountView) Focus(focus bool)
func (*AccountView) Invalidate ¶
func (acct *AccountView) Invalidate()
func (*AccountView) Logger ¶
func (acct *AccountView) Logger() *log.Logger
func (*AccountView) Messages ¶
func (acct *AccountView) Messages() *MessageList
func (*AccountView) Name ¶
func (acct *AccountView) Name() string
func (*AccountView) OnInvalidate ¶
func (acct *AccountView) OnInvalidate(onInvalidate func(d ui.Drawable))
func (*AccountView) SelectedAccount ¶
func (acct *AccountView) SelectedAccount() *AccountView
func (*AccountView) SelectedMessage ¶
func (acct *AccountView) SelectedMessage() *types.MessageInfo
func (*AccountView) Store ¶
func (acct *AccountView) Store() *lib.MessageStore
func (*AccountView) Tick ¶
func (acct *AccountView) Tick() bool
func (*AccountView) Worker ¶
func (acct *AccountView) Worker() *types.Worker
type AccountWizard ¶
type AccountWizard struct { ui.Invalidatable // contains filtered or unexported fields }
func NewAccountWizard ¶
func NewAccountWizard(conf *config.AercConfig, aerc *Aerc) *AccountWizard
func (*AccountWizard) Draw ¶
func (wizard *AccountWizard) Draw(ctx *ui.Context)
func (*AccountWizard) Focus ¶
func (wizard *AccountWizard) Focus(focus bool)
func (*AccountWizard) Invalidate ¶
func (wizard *AccountWizard) Invalidate()
type Aerc ¶
type Aerc struct {
// contains filtered or unexported fields
}
func (*Aerc) BeginExCommand ¶
func (aerc *Aerc) BeginExCommand()
func (*Aerc) Config ¶
func (aerc *Aerc) Config() *config.AercConfig
func (*Aerc) Invalidate ¶
func (aerc *Aerc) Invalidate()
func (*Aerc) OnInvalidate ¶
func (*Aerc) PushStatus ¶
func (aerc *Aerc) PushStatus(text string, expiry time.Duration) *StatusMessage
func (*Aerc) SelectedAccount ¶
func (aerc *Aerc) SelectedAccount() *AccountView
func (*Aerc) SelectedTab ¶
func (*Aerc) SetStatus ¶
func (aerc *Aerc) SetStatus(status string) *StatusMessage
TODO: Use per-account status lines, but a global ex line
type Composer ¶
type Composer struct {
// contains filtered or unexported fields
}
func NewComposer ¶
func NewComposer(conf *config.AercConfig, acct *config.AccountConfig, worker *types.Worker) *Composer
TODO: Let caller configure headers, initial body (for replies), etc
func (*Composer) Config ¶
func (c *Composer) Config() *config.AccountConfig
func (*Composer) Defaults ¶
Sets additional headers to be added to the outgoing email (e.g. In-Reply-To)
func (*Composer) FocusTerminal ¶
func (*Composer) Invalidate ¶
func (c *Composer) Invalidate()
func (*Composer) OnInvalidate ¶
func (*Composer) OnSubjectChange ¶
func (*Composer) SetContents ¶
Note: this does not reload the editor. You must call this before the first Draw() call.
func (*Composer) ShowTerminal ¶
func (c *Composer) ShowTerminal()
type DirectoryList ¶
type DirectoryList struct { ui.Invalidatable // contains filtered or unexported fields }
func NewDirectoryList ¶
func NewDirectoryList(conf *config.AccountConfig, logger *log.Logger, worker *types.Worker) *DirectoryList
func (*DirectoryList) Draw ¶
func (dirlist *DirectoryList) Draw(ctx *ui.Context)
func (*DirectoryList) Invalidate ¶
func (dirlist *DirectoryList) Invalidate()
func (*DirectoryList) Next ¶
func (dirlist *DirectoryList) Next()
func (*DirectoryList) Prev ¶
func (dirlist *DirectoryList) Prev()
func (*DirectoryList) Select ¶
func (dirlist *DirectoryList) Select(name string)
func (*DirectoryList) Selected ¶
func (dirlist *DirectoryList) Selected() string
func (*DirectoryList) UpdateList ¶
func (dirlist *DirectoryList) UpdateList(done func(dirs []string))
type ExLine ¶
type ExLine struct { ui.Invalidatable // contains filtered or unexported fields }
func (*ExLine) Invalidate ¶
func (ex *ExLine) Invalidate()
type HeaderView ¶
type HeaderView struct { ui.Invalidatable Name string Value string }
func (*HeaderView) Draw ¶
func (hv *HeaderView) Draw(ctx *ui.Context)
func (*HeaderView) Invalidate ¶
func (hv *HeaderView) Invalidate()
type MessageList ¶
type MessageList struct { ui.Invalidatable // contains filtered or unexported fields }
func NewMessageList ¶
func NewMessageList(conf *config.AercConfig, logger *log.Logger) *MessageList
func (*MessageList) Draw ¶
func (ml *MessageList) Draw(ctx *ui.Context)
func (*MessageList) Empty ¶
func (ml *MessageList) Empty() bool
func (*MessageList) Height ¶
func (ml *MessageList) Height() int
func (*MessageList) Invalidate ¶
func (ml *MessageList) Invalidate()
func (*MessageList) Next ¶
func (ml *MessageList) Next()
func (*MessageList) Prev ¶
func (ml *MessageList) Prev()
func (*MessageList) Select ¶
func (ml *MessageList) Select(index int)
func (*MessageList) Selected ¶
func (ml *MessageList) Selected() *types.MessageInfo
func (*MessageList) SetStore ¶
func (ml *MessageList) SetStore(store *lib.MessageStore)
func (*MessageList) Store ¶
func (ml *MessageList) Store() *lib.MessageStore
type MessageViewer ¶
type MessageViewer struct { ui.Invalidatable // contains filtered or unexported fields }
func NewMessageViewer ¶
func NewMessageViewer(acct *AccountView, conf *config.AercConfig, store *lib.MessageStore, msg *types.MessageInfo) *MessageViewer
func (*MessageViewer) CurrentPart ¶
func (mv *MessageViewer) CurrentPart() *PartInfo
func (*MessageViewer) Draw ¶
func (mv *MessageViewer) Draw(ctx *ui.Context)
func (*MessageViewer) Focus ¶
func (mv *MessageViewer) Focus(focus bool)
func (*MessageViewer) Invalidate ¶
func (mv *MessageViewer) Invalidate()
func (*MessageViewer) NextPart ¶
func (mv *MessageViewer) NextPart()
func (*MessageViewer) OnInvalidate ¶
func (mv *MessageViewer) OnInvalidate(fn func(d ui.Drawable))
func (*MessageViewer) PreviousPart ¶
func (mv *MessageViewer) PreviousPart()
func (*MessageViewer) SelectedAccount ¶
func (mv *MessageViewer) SelectedAccount() *AccountView
func (*MessageViewer) SelectedMessage ¶
func (mv *MessageViewer) SelectedMessage() *types.MessageInfo
func (*MessageViewer) Store ¶
func (mv *MessageViewer) Store() *lib.MessageStore
type PartInfo ¶
type PartInfo struct { Index []int Msg *types.MessageInfo Part *imap.BodyStructure Store *lib.MessageStore }
type PartSwitcher ¶
type PartSwitcher struct { ui.Invalidatable // contains filtered or unexported fields }
func (*PartSwitcher) Draw ¶
func (ps *PartSwitcher) Draw(ctx *ui.Context)
func (*PartSwitcher) Focus ¶
func (ps *PartSwitcher) Focus(focus bool)
func (*PartSwitcher) Invalidate ¶
func (ps *PartSwitcher) Invalidate()
type PartViewer ¶
type PartViewer struct { ui.Invalidatable // contains filtered or unexported fields }
func NewPartViewer ¶
func NewPartViewer(conf *config.AercConfig, store *lib.MessageStore, msg *types.MessageInfo, part *imap.BodyStructure, index []int) (*PartViewer, error)
func (*PartViewer) Draw ¶
func (pv *PartViewer) Draw(ctx *ui.Context)
func (*PartViewer) Invalidate ¶
func (pv *PartViewer) Invalidate()
func (*PartViewer) SetSource ¶
func (pv *PartViewer) SetSource(reader io.Reader)
type ProvidesMessage ¶
type ProvidesMessage interface { ui.Drawable Store() *lib.MessageStore SelectedMessage() *types.MessageInfo SelectedAccount() *AccountView }
type Spinner ¶
type Spinner struct { ui.Invalidatable // contains filtered or unexported fields }
func NewSpinner ¶
func NewSpinner() *Spinner
func (*Spinner) Invalidate ¶
func (s *Spinner) Invalidate()
type StatusLine ¶
type StatusLine struct { ui.Invalidatable // contains filtered or unexported fields }
func NewStatusLine ¶
func NewStatusLine() *StatusLine
func (*StatusLine) Draw ¶
func (status *StatusLine) Draw(ctx *ui.Context)
func (*StatusLine) Expire ¶
func (status *StatusLine) Expire()
func (*StatusLine) Invalidate ¶
func (status *StatusLine) Invalidate()
func (*StatusLine) Push ¶
func (status *StatusLine) Push(text string, expiry time.Duration) *StatusMessage
func (*StatusLine) Set ¶
func (status *StatusLine) Set(text string) *StatusMessage
type StatusMessage ¶
type StatusMessage struct {
// contains filtered or unexported fields
}
type TabHost ¶
type TabHost interface { BeginExCommand() SetStatus(status string) *StatusMessage PushStatus(text string, expiry time.Duration) *StatusMessage }
Click to show internal directories.
Click to hide internal directories.