diff options
author | Jeffas <dev@jeffas.io> | 2020-04-24 11:42:22 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-04-24 12:59:21 -0400 |
commit | 3102ac3680ba5fcfb126894a7b7b950b07b6c735 (patch) | |
tree | c017e43203fcadf978fd919222628581f6b11b1b /widgets/account.go | |
parent | 7f033278eb3afc3b9ae2dca28efe8d4a3514d14a (diff) | |
download | aerc-3102ac3680ba5fcfb126894a7b7b950b07b6c735.tar.gz |
Add recall command
This command allows recalling the selected postponed email to edit in
the composer. The command only allows recalling from the postpone
directory.
Diffstat (limited to 'widgets/account.go')
-rw-r--r-- | widgets/account.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/account.go b/widgets/account.go index a854fb6e..31384a5f 100644 --- a/widgets/account.go +++ b/widgets/account.go @@ -200,6 +200,10 @@ func (acct *AccountView) SelectedAccount() *AccountView { return acct } +func (acct *AccountView) SelectedDirectory() string { + return acct.dirlist.Selected() +} + func (acct *AccountView) SelectedMessage() (*models.MessageInfo, error) { if len(acct.msglist.Store().Uids()) == 0 { return nil, errors.New("no message selected") |