diff options
Diffstat (limited to 'app')
-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 b5bed86e..734ba37a 100644 --- a/app/account.go +++ b/app/account.go @@ -265,6 +265,15 @@ func (acct *AccountView) newStore(name string) *lib.MessageStore { msg := fmt.Sprintf("mail-deleted hook: %s", err) PushError(msg) } + }, func(dest string) { + err := hooks.RunHook(&hooks.MailAdded{ + Account: acct.Name(), + Folder: dest, + }) + if err != nil { + msg := fmt.Sprintf("mail-added hook: %s", err) + PushError(msg) + } }, acct.updateSplitView, acct.dirlist.UiConfig(name).ThreadContext, |