about summary refs log tree commit diff stats
path: root/worker/imap/worker.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-01-13 19:37:06 -0500
committerDrew DeVault <sir@cmpwn.com>2019-01-13 19:37:06 -0500
commit4b350dddea99faad7450f292b6be036a0fe3220d (patch)
tree06b9589fa8f2d2488d662a7c74b13c3ce4b1199f /worker/imap/worker.go
parent2750f99a6049322b1361b5bfa4dff3b1df2b36ab (diff)
downloadaerc-4b350dddea99faad7450f292b6be036a0fe3220d.tar.gz
Add name to DirectoryInfo messages
Diffstat (limited to 'worker/imap/worker.go')
-rw-r--r--worker/imap/worker.go3
1 files changed, 2 insertions, 1 deletions
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),