aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-11-13 13:19:44 -0500
committerDrew DeVault <sir@cmpwn.com>2020-11-13 13:19:44 -0500
commit18ad982c538e17c8181969a748b9adfbc43db29f (patch)
treec9787155e884293f29a1e0f0b54764cea120f318
parentfa102822bb61d612a46d67370ed0619f33fdf4a9 (diff)
downloadalps-18ad982c538e17c8181969a748b9adfbc43db29f.tar.gz
alps-18ad982c538e17c8181969a748b9adfbc43db29f.zip
Remove leftover outbox handling
-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]