From 4b350dddea99faad7450f292b6be036a0fe3220d Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 13 Jan 2019 19:37:06 -0500 Subject: Add name to DirectoryInfo messages --- worker/imap/worker.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'worker/imap') diff --git a/worker/imap/worker.go b/worker/imap/worker.go index 4381e22..f6685c1 100644 --- a/worker/imap/worker.go +++ b/worker/imap/worker.go @@ -163,8 +163,9 @@ func (w *IMAPWorker) handleImapUpdate(update client.Update) { case *client.MailboxUpdate: status := update.Mailbox w.worker.PostMessage(&types.DirectoryInfo{ - ReadOnly: status.ReadOnly, Flags: status.Flags, + Name: status.Name, + ReadOnly: status.ReadOnly, Exists: int(status.Messages), Recent: int(status.Recent), -- cgit 1.4.1-2-gfad0