~rjarry/aerc

e32421b81f1506cff1db2c9be42754757957c072 — Koni Marti 1 year, 1 month ago 916bca3
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>
1 files changed, 0 insertions(+), 3 deletions(-)

M worker/maildir/worker.go
M worker/maildir/worker.go => worker/maildir/worker.go +0 -3
@@ 111,9 111,6 @@ func (w *Worker) Capabilities() *models.Capabilities {
}

func (w *Worker) PathSeparator() string {
	if w.maildirpp {
		return "."
	}
	return string(os.PathSeparator)
}