aboutsummaryrefslogtreecommitdiffstats
path: root/worker/maildir/worker.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker/maildir/worker.go')
-rw-r--r--worker/maildir/worker.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/worker/maildir/worker.go b/worker/maildir/worker.go
index ba72432c..b222aab8 100644
--- a/worker/maildir/worker.go
+++ b/worker/maildir/worker.go
@@ -108,6 +108,13 @@ func (w *Worker) Capabilities() *models.Capabilities {
return w.capabilities
}
+func (w *Worker) PathSeparator() string {
+ if w.maildirpp {
+ return "."
+ }
+ return string(os.PathSeparator)
+}
+
func (w *Worker) handleAction(action types.WorkerMessage) {
msg := w.worker.ProcessAction(action)
switch msg := msg.(type) {