aboutsummaryrefslogtreecommitdiffstats
path: root/worker/notmuch/worker.go
diff options
context:
space:
mode:
authorMoritz Poldrack <git@moritz.sh>2023-05-09 17:19:42 +0200
committerRobin Jarry <robin@jarry.cc>2023-05-16 13:56:58 +0200
commit2040fc1885ca4b4bea07d91e9fc6a0aaebfe7133 (patch)
tree0df09ba088414a5d74081e6a61c68afc2141c5a8 /worker/notmuch/worker.go
parent0eaf05d3fa6295e7df06793a967d3389d2a0f7d8 (diff)
downloadaerc-2040fc1885ca4b4bea07d91e9fc6a0aaebfe7133.tar.gz
imap: use delimiter from server
To accommodate servers that use a delimiter other than "/" ("." being a common alternative), the delimiter is fetched from the server when connecting. Signed-off-by: Moritz Poldrack <git@moritz.sh> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'worker/notmuch/worker.go')
-rw-r--r--worker/notmuch/worker.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/worker/notmuch/worker.go b/worker/notmuch/worker.go
index 6b1b64d9..d5c012ad 100644
--- a/worker/notmuch/worker.go
+++ b/worker/notmuch/worker.go
@@ -109,6 +109,13 @@ func (w *worker) Capabilities() *models.Capabilities {
return w.capabilities
}
+func (w *worker) PathSeparator() string {
+ // make it configurable?
+ // <rockorager> You can use those in query maps to force a tree
+ // <rockorager> Might be nice to be configurable? I see some notmuch people namespace with "::"
+ return "/"
+}
+
func (w *worker) done(msg types.WorkerMessage) {
w.w.PostMessage(&types.Done{Message: types.RespondTo(msg)}, nil)
}