diff options
Diffstat (limited to 'worker')
-rw-r--r-- | worker/imap/list.go | 3 | ||||
-rw-r--r-- | worker/maildir/worker.go | 3 | ||||
-rw-r--r-- | worker/mbox/worker.go | 3 | ||||
-rw-r--r-- | worker/notmuch/worker.go | 9 |
4 files changed, 6 insertions, 12 deletions
diff --git a/worker/imap/list.go b/worker/imap/list.go index b1bc65a1..07aa2971 100644 --- a/worker/imap/list.go +++ b/worker/imap/list.go @@ -24,8 +24,7 @@ func (imapw *IMAPWorker) handleListDirectories(msg *types.ListDirectories) { imapw.worker.PostMessage(&types.Directory{ Message: types.RespondTo(msg), Dir: &models.Directory{ - Name: mbox.Name, - Attributes: mbox.Attributes, + Name: mbox.Name, }, }, nil) } diff --git a/worker/maildir/worker.go b/worker/maildir/worker.go index d8b3e816..c57f0d67 100644 --- a/worker/maildir/worker.go +++ b/worker/maildir/worker.go @@ -362,8 +362,7 @@ func (w *Worker) handleListDirectories(msg *types.ListDirectories) error { w.worker.PostMessage(&types.Directory{ Message: types.RespondTo(msg), Dir: &models.Directory{ - Name: name, - Attributes: []string{}, + Name: name, }, }, nil) diff --git a/worker/mbox/worker.go b/worker/mbox/worker.go index 3063640a..01a1425a 100644 --- a/worker/mbox/worker.go +++ b/worker/mbox/worker.go @@ -88,8 +88,7 @@ func (w *mboxWorker) handleMessage(msg types.WorkerMessage) error { w.worker.PostMessage(&types.Directory{ Message: types.RespondTo(msg), Dir: &models.Directory{ - Name: name, - Attributes: nil, + Name: name, }, }, nil) w.worker.PostMessage(&types.DirectoryInfo{ diff --git a/worker/notmuch/worker.go b/worker/notmuch/worker.go index 687d3f67..199eb64f 100644 --- a/worker/notmuch/worker.go +++ b/worker/notmuch/worker.go @@ -248,8 +248,7 @@ func (w *worker) handleListDirectories(msg *types.ListDirectories) error { w.w.PostMessage(&types.Directory{ Message: types.RespondTo(msg), Dir: &models.Directory{ - Name: name, - Attributes: []string{}, + Name: name, }, }, nil) } @@ -259,8 +258,7 @@ func (w *worker) handleListDirectories(msg *types.ListDirectories) error { w.w.PostMessage(&types.Directory{ Message: types.RespondTo(msg), Dir: &models.Directory{ - Name: name, - Attributes: []string{}, + Name: name, }, }, nil) } @@ -321,8 +319,7 @@ func (w *worker) handleOpenDirectory(msg *types.OpenDirectory) error { w.w.PostMessage(&types.Directory{ Message: types.RespondTo(msg), Dir: &models.Directory{ - Name: q, - Attributes: []string{}, + Name: q, }, }, nil) } |