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:
Mechiel Lukkien
2025-03-23 12:45:21 +01:00
parent b37faa06bd
commit a68a9d8a48
4 changed files with 36 additions and 29 deletions

View File

@ -1695,7 +1695,7 @@
},
{
"Name": "HaveCounts",
"Docs": "Whether MailboxCounts have been initialized.",
"Docs": "Deprecated. Covered by Upgrade.MailboxCounts. No longer read.",
"Typewords": [
"bool"
]

View File

@ -201,7 +201,7 @@ export interface Mailbox {
Sent: boolean
Trash: boolean
Keywords?: string[] | null // Keywords as used in messages. Storing a non-system keyword for a message automatically adds it to this list. Used in the IMAP FLAGS response. Only "atoms" are allowed (IMAP syntax), keywords are case-insensitive, only stored in lower case (for JMAP), sorted.
HaveCounts: boolean // Whether MailboxCounts have been initialized.
HaveCounts: boolean // Deprecated. Covered by Upgrade.MailboxCounts. No longer read.
Total: number // Total number of messages, excluding \Deleted. For JMAP.
Deleted: number // Number of messages with \Deleted flag. Used for IMAP message count that includes messages with \Deleted.
Unread: number // Messages without \Seen, excluding those with \Deleted, for JMAP.