parent
e4daf0778d
commit
643047402d
|
@ -133,9 +133,7 @@ func newIMAPBaseRenderData(ctx *alps.Context,
|
||||||
if mboxName == "Outbox" {
|
if mboxName == "Outbox" {
|
||||||
outbox = active
|
outbox = active
|
||||||
} else {
|
} else {
|
||||||
if outbox, err = getMailboxStatus(c, "Outbox"); err != nil {
|
outbox, _ = getMailboxStatus(c, "Outbox")
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
@ -165,7 +163,7 @@ func newIMAPBaseRenderData(ctx *alps.Context,
|
||||||
mailboxes[i].Unseen = int(inbox.Unseen)
|
mailboxes[i].Unseen = int(inbox.Unseen)
|
||||||
mailboxes[i].Total = int(inbox.Messages)
|
mailboxes[i].Total = int(inbox.Messages)
|
||||||
}
|
}
|
||||||
if mailboxes[i].Name == outbox.Name {
|
if outbox != nil && mailboxes[i].Name == outbox.Name {
|
||||||
mailboxes[i].Unseen = int(outbox.Unseen)
|
mailboxes[i].Unseen = int(outbox.Unseen)
|
||||||
mailboxes[i].Total = int(outbox.Messages)
|
mailboxes[i].Total = int(outbox.Messages)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue