From 6574dedd8a4afdaedd3677283955a866214bd99a Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Thu, 4 Jul 2019 22:34:20 -0400 Subject: Remove unused fields from Directory and DirectoryInfo As it turns out, the only fields of these messages that the UI cares about (right now) is the name. --- worker/imap/list.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'worker/imap/list.go') diff --git a/worker/imap/list.go b/worker/imap/list.go index 708e70f..4077e79 100644 --- a/worker/imap/list.go +++ b/worker/imap/list.go @@ -18,9 +18,8 @@ func (imapw *IMAPWorker) handleListDirectories(msg *types.ListDirectories) { continue } imapw.worker.PostMessage(&types.Directory{ - Message: types.RespondTo(msg), - Name: mbox.Name, - Attributes: mbox.Attributes, + Message: types.RespondTo(msg), + Name: mbox.Name, }, nil) } done <- nil -- cgit v1.2.3