mirror of
https://git.sr.ht/~sircmpwn/aerc
synced 2024-11-23 16:42:07 +01:00
Add name to DirectoryInfo messages
This commit is contained in:
parent
2750f99a60
commit
4b350dddea
@ -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),
|
||||
|
@ -83,8 +83,9 @@ type Directory struct {
|
||||
|
||||
type DirectoryInfo struct {
|
||||
Message
|
||||
ReadOnly bool
|
||||
Flags []string
|
||||
Name string
|
||||
ReadOnly bool
|
||||
|
||||
Exists, Recent, Unseen int
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user