Currently a list of all mailboxes is shown, subscribed and unsubscribed, but only Inbox shows unread count next to it.
Server side filters and rules may place messages in other folders. In Migadu case, we use plus addressing to move to folders automatically. Without an indicator in the webmail on the mailbox, these new messages will go unnoticed.
I think it is great to show all folders, however we could treat them differently.
The mailbox list template variable needs a flag whether user is subscribed to that mailbox or not. If it is subscribed, then new messages count could be shown next to it. Unsubscribed mailboxes are not shown any counters.
Inside of the mailbox view, a button could be presented for subscribing/unsubscribing. This would then change the behavior by checking for new messages count.
Now, it is insane to check all mailboxes on each sync. There must be a better way?
Pushed a UI design for this:
I think this is a bit better than the sub/unsub button in each mailbox. Will wire it up to logic later.
Rolling back that previous UI design and moving to a combobox on the user settings page, after a discussion with ~emersion. You wouldn't be editing these subscriptions often enough to justify the prime real-estate the other design uses.