aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/base/routes.go6
1 files changed, 1 insertions, 5 deletions
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]