aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hooks/mail-deleted.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hooks/mail-deleted.go')
-rw-r--r--lib/hooks/mail-deleted.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/hooks/mail-deleted.go b/lib/hooks/mail-deleted.go
index e9f13105..ca190ee0 100644
--- a/lib/hooks/mail-deleted.go
+++ b/lib/hooks/mail-deleted.go
@@ -9,6 +9,7 @@ import (
type MailDeleted struct {
Account string
Folder string
+ Role string
}
func (m *MailDeleted) Cmd() string {
@@ -19,5 +20,6 @@ func (m *MailDeleted) Env() []string {
return []string{
fmt.Sprintf("AERC_ACCOUNT=%s", m.Account),
fmt.Sprintf("AERC_FOLDER=%s", m.Folder),
+ fmt.Sprintf("AERC_FOLDER_ROLE=%s", m.Role),
}
}