Mailspring does not seem to respect the focus mode settings on macOS. For example, the Do Not Disturb focus mode turns off all notifications. Even when I have this mode on the Mailspring app makes a sound when I receive and email into my inbox.
To Reproduce…
Steps to reproduce the behavior:
Open Mailspring app on macOS
Turn on the “Do Not Disturb” focus mode
Send yourself an email
You hear the received email sound notification
Expected Behavior
I expect that no sounds are played for any notification when Do Not Disturb is activated.
I did stumble on another thread related to notifications as well as a PR that was linked that was around integrating into Windows and Mac OSs do not disturb.
Gonna poke around and see if there’s anything I can contribute
Thanks for reporting this! You’re correct - the macos-notification-state package we use to detect Do Not Disturb mode is outdated and doesn’t properly support macOS 12+ Focus mode.
I’ve pushed a fix that updates the package to v3.0.0, which adds proper Focus mode detection via Apple’s FocusStatus API. This should resolve the issue of sounds playing when you have Focus mode enabled.