Add name to DirectoryInfo messages
This commit is contained in:
parent
2750f99a60
commit
4b350dddea
2 changed files with 4 additions and 2 deletions
|
@ -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 a new issue