aboutsummaryrefslogtreecommitdiffstats
path: root/worker/notmuch/worker.go
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2023-04-16 09:53:45 -0500
committerRobin Jarry <robin@jarry.cc>2023-04-22 22:40:12 +0200
commit669431702f46eb58f893cbe722040de3792f6b03 (patch)
tree92899c33c7032d598092d3147bf6e8efbc3741e9 /worker/notmuch/worker.go
parent5b0a98b8c936532fa5444b1cabf53d7c929d19c1 (diff)
downloadaerc-669431702f46eb58f893cbe722040de3792f6b03.tar.gz
directory: add IANA mailbox roles
Add IANA registered mailbox role, and a custom aerc role "query". This will be used in subsequent commits which add the Role field to templates, allowing users to style mailbox by IANA role, or style notmuch queries differently than maildir dirs when using the notmuch worker + maildir option. Signed-off-by: Tim Culverhouse <tim@timculverhouse.com> Acked-by: Robin Jarry<robin@jarry.cc>
Diffstat (limited to 'worker/notmuch/worker.go')
-rw-r--r--worker/notmuch/worker.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/worker/notmuch/worker.go b/worker/notmuch/worker.go
index b25a8786..6b1b64d9 100644
--- a/worker/notmuch/worker.go
+++ b/worker/notmuch/worker.go
@@ -259,6 +259,7 @@ func (w *worker) handleListDirectories(msg *types.ListDirectories) error {
Message: types.RespondTo(msg),
Dir: &models.Directory{
Name: name,
+ Role: models.QueryRole,
},
}, nil)
}
@@ -317,6 +318,7 @@ func (w *worker) handleOpenDirectory(msg *types.OpenDirectory) error {
Message: types.RespondTo(msg),
Dir: &models.Directory{
Name: q,
+ Role: models.QueryRole,
},
}, nil)
}