aerc

Working clone of aerc-mail.org
git clone git://git.danielmoch.com/aerc.git
Log | Files | Refs | README | LICENSE

commit 4b350dddea99faad7450f292b6be036a0fe3220d
parent 2750f99a6049322b1361b5bfa4dff3b1df2b36ab
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun, 13 Jan 2019 19:37:06 -0500

Add name to DirectoryInfo messages

Diffstat:
Mworker/imap/worker.go | 3++-
Mworker/types/messages.go | 3++-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git 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), diff --git a/worker/types/messages.go b/worker/types/messages.go @@ -83,8 +83,9 @@ type Directory struct { type DirectoryInfo struct { Message - ReadOnly bool Flags []string + Name string + ReadOnly bool Exists, Recent, Unseen int }