aboutsummaryrefslogtreecommitdiffstats
path: root/worker/imap/worker.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker/imap/worker.go')
-rw-r--r--worker/imap/worker.go18
1 files changed, 13 insertions, 5 deletions
diff --git a/worker/imap/worker.go b/worker/imap/worker.go
index 1f61f458..f9a722e6 100644
--- a/worker/imap/worker.go
+++ b/worker/imap/worker.go
@@ -61,11 +61,12 @@ type imapConfig struct {
type IMAPWorker struct {
config imapConfig
- client *imapClient
- selected *imap.MailboxStatus
- updates chan client.Update
- worker *types.Worker
- seqMap SeqMap
+ client *imapClient
+ selected *imap.MailboxStatus
+ updates chan client.Update
+ worker *types.Worker
+ seqMap SeqMap
+ delimiter string
idler *idler
observer *observer
@@ -311,3 +312,10 @@ func (w *IMAPWorker) Run() {
func (w *IMAPWorker) Capabilities() *models.Capabilities {
return w.caps
}
+
+func (w *IMAPWorker) PathSeparator() string {
+ if w.delimiter == "" {
+ return "/"
+ }
+ return w.delimiter
+}