diff options
Diffstat (limited to 'app/account.go')
-rw-r--r-- | app/account.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/account.go b/app/account.go index 817b9b74..b5bed86e 100644 --- a/app/account.go +++ b/app/account.go @@ -256,6 +256,15 @@ func (acct *AccountView) newStore(name string) *lib.MessageStore { if uiConf.NewMessageBell { aerc.Beep() } + }, func() { + err := hooks.RunHook(&hooks.MailDeleted{ + Account: acct.Name(), + Folder: name, + }) + if err != nil { + msg := fmt.Sprintf("mail-deleted hook: %s", err) + PushError(msg) + } }, acct.updateSplitView, acct.dirlist.UiConfig(name).ThreadContext, |