Remove leftover outbox handling

This commit is contained in:
Drew DeVault 2020-11-13 13:19:44 -05:00
parent fa102822bb
commit 18ad982c53
1 changed files with 1 additions and 5 deletions

View File

@ -110,7 +110,7 @@ func newIMAPBaseRenderData(ctx *alps.Context,
}
var mailboxes []MailboxInfo
var active, inbox, outbox *MailboxStatus
var active, inbox *MailboxStatus
err = ctx.Session.DoIMAP(func(c *imapclient.Client) error {
var err error
if mailboxes, err = listMailboxes(c); err != nil {
@ -155,10 +155,6 @@ func newIMAPBaseRenderData(ctx *alps.Context,
mailboxes[i].Unseen = int(inbox.Unseen)
mailboxes[i].Total = int(inbox.Messages)
}
if outbox != nil && mailboxes[i].Name == outbox.Name {
mailboxes[i].Unseen = int(outbox.Unseen)
mailboxes[i].Total = int(outbox.Messages)
}
if ptr, ok := mmap[mailboxes[i].Name]; ok {
*ptr = &mailboxes[i]