mirror of
https://github.com/mjl-/mox.git
synced 2025-07-19 00:06:37 +03:00
check whether mailboxes have message/etc counts through an "upgrade" boolean flag
Instead of using the per-mailbox flag, and going through all mailboxes when opening an account.
This commit is contained in:
2
ctl.go
2
ctl.go
@ -1522,7 +1522,7 @@ func servectlcmd(ctx context.Context, ctl *ctl, cid int64, shutdown func()) {
|
||||
}
|
||||
totalSize += mc.Size
|
||||
|
||||
if !mb.HaveCounts || mc != mb.MailboxCounts {
|
||||
if mc != mb.MailboxCounts {
|
||||
_, err := fmt.Fprintf(w, "for %s setting new counts %s (was %s)\n", mb.Name, mc, mb.MailboxCounts)
|
||||
ctl.xcheck(err, "write")
|
||||
mb.HaveCounts = true
|
||||
|
Reference in New Issue
Block a user