aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2023-05-16 17:57:58 +0200
committerRobin Jarry <robin@jarry.cc>2023-05-20 22:09:43 +0200
commite32421b81f1506cff1db2c9be42754757957c072 (patch)
treed3af95e32c6cc3ac86222ef0f8752dce08a15c9b
parent916bca33ea6cf2530117071fdd9b7b15e00e2f29 (diff)
downloadaerc-e32421b81f1506cff1db2c9be42754757957c072.tar.gz
aerc-e32421b81f1506cff1db2c9be42754757957c072.zip
maildirpp: fix path separator
Fix path separator for the maildir++ backend. Maildir++ already substitutes '.' for os.PathSeparator. Returning '.' will thus break the directory tree and the other logic for this backend. Fixes: 2040fc18 ("imap: use delimiter from server") Signed-off-by: Koni Marti <koni.marti@gmail.com> Acked-by: Robin Jarry <robin@jarry.cc>
-rw-r--r--worker/maildir/worker.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/worker/maildir/worker.go b/worker/maildir/worker.go
index c45992eb..1912cace 100644
--- a/worker/maildir/worker.go
+++ b/worker/maildir/worker.go
@@ -111,9 +111,6 @@ func (w *Worker) Capabilities() *models.Capabilities {
}
func (w *Worker) PathSeparator() string {
- if w.maildirpp {
- return "."
- }
return string(os.PathSeparator)
}