From 18ad982c538e17c8181969a748b9adfbc43db29f Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 13 Nov 2020 13:19:44 -0500 Subject: Remove leftover outbox handling --- plugins/base/routes.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'plugins/base/routes.go') diff --git a/plugins/base/routes.go b/plugins/base/routes.go index ea5bec5..c8d112e 100644 --- a/plugins/base/routes.go +++ b/plugins/base/routes.go @@ -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] -- cgit v1.2.3