Ability to choose which mailbox the tray icon should reflect

The Problem

The system tray icon reflects the unread state of the last selected mailbox when the app is closed, rather than the mailbox the user primarily cares about. This can cause missed notifications when a secondary or irrelevant mailbox was selected before closing the app.

Proposed Solution

Allow users to define which mailbox (or scope, or the whole app) the tray icon represents, independent of the currently selected mailbox at shutdown.

Config example

Always show unread messages for:

  • Selected mailboxes
  • All mailboxes
  • The mailbox I last viewed