From 2040fc1885ca4b4bea07d91e9fc6a0aaebfe7133 Mon Sep 17 00:00:00 2001 From: Moritz Poldrack Date: Tue, 9 May 2023 17:19:42 +0200 Subject: 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 Acked-by: Robin Jarry --- worker/mbox/worker.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'worker/mbox/worker.go') diff --git a/worker/mbox/worker.go b/worker/mbox/worker.go index fbdbec36..47713048 100644 --- a/worker/mbox/worker.go +++ b/worker/mbox/worker.go @@ -383,6 +383,10 @@ func (w *mboxWorker) Capabilities() *models.Capabilities { return w.capabilities } +func (w *mboxWorker) PathSeparator() string { + return "/" +} + func filterUids(folder *container, uids []uint32, args []string) ([]uint32, error) { criteria, err := lib.GetSearchCriteria(args) if err != nil { -- cgit