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/types/worker.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'worker/types') diff --git a/worker/types/worker.go b/worker/types/worker.go index 55e00faf..7033bf77 100644 --- a/worker/types/worker.go +++ b/worker/types/worker.go @@ -15,6 +15,7 @@ var lastId int64 = 1 // access via atomic type Backend interface { Run() Capabilities() *models.Capabilities + PathSeparator() string } type Worker struct { @@ -179,3 +180,7 @@ func (worker *Worker) PostMessageInfoError(msg WorkerMessage, uid uint32, err er Message: RespondTo(msg), }, nil) } + +func (worker *Worker) PathSeparator() string { + return worker.Backend.PathSeparator() +} -- cgit