Run in the tray and notify about new mail

Closing the window now leaves spark-rs in the notification area, still
syncing; clicking the icon brings it back, and its menu checks for mail
or quits. Starting spark-rs again brings the running window forward
instead of starting a second sync (tauri-plugin-single-instance).

New mail shows a Windows notification with the New Mail sound, and
clicking one opens the message. The engine's sync report now names the
messages that arrived (Report::arrived), leaving out an account's first
sync. By default only mail from people notifies; mail already read, new
senders waiting in the Gatekeeper, and mail arriving while the window is
in front stay quiet, and more than three at once become one notification.
The app registers its name and icon under
HKCU\Software\Classes\AppUserModelId so notifications show without an
installer.

Settings -> Notifications chooses Smart, All or Off, turns the sound
off, stops closing to the tray, and opens spark-rs in the background at
sign-in (an HKCU Run entry with --background). The window now starts
hidden; setup shows it unless launched that way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
825ef3083dMichael Rodriguez committed on 10/22/2026, 9:35:20 PMparent66fb996
17 files changedLine totals unavailable