aboutsummaryrefslogtreecommitdiffstats
path: root/app/account.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/account.go')
-rw-r--r--app/account.go9
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,