Thunderbird add-on: choose which accounts count towards the unread badge on the dock or taskbar icon.
  • JavaScript 89%
  • HTML 6.3%
  • Shell 4.7%
Find a file
Felix e20cd9a641
All checks were successful
nightly / nightly (push) Successful in 11s
release / release (push) Successful in 12s
Release 1.0.0
2026-11-29 19:16:46 +01:00
.forgejo/workflows Leave chosen accounts out of the app icon badge 2026-11-29 18:50:32 +01:00
api Remove code that turned out not to be needed 2026-11-29 19:05:27 +01:00
.gitignore Leave chosen accounts out of the app icon badge 2026-11-29 18:50:32 +01:00
background.js Apply settings whenever the background loads, also on enable 2026-11-29 19:08:50 +01:00
build.sh Leave chosen accounts out of the app icon badge 2026-11-29 18:50:32 +01:00
LICENSE Leave chosen accounts out of the app icon badge 2026-11-29 18:50:32 +01:00
manifest.json Release 1.0.0 2026-11-29 19:16:46 +01:00
options.html Leave chosen accounts out of the app icon badge 2026-11-29 18:50:32 +01:00
options.js Refresh the whole settings list after a change and when shown again 2026-11-29 19:13:12 +01:00
README.md Release 1.0.0 2026-11-29 19:16:46 +01:00

tobu-badge

Thunderbird add-on: choose which accounts count towards the unread badge on the app icon (the macOS dock, the Windows taskbar, the Linux tray). Thunderbird 161 or later.

Install

Download the .xpi from the latest release, then in Thunderbird: Add-ons > gear > Install Add-on From File. Updates don't install themselves; download and install each new release the same way.

Use

Open the add-on's settings: every account with an inbox has a checkbox, all ticked by default. Untick an account to leave it out of the badge. The change applies at once; new accounts count until you untick them.

Works with both badge settings in Settings > General > App icon options: total unread and total new messages. Mail still arrives and Thunderbird's own new-mail alerts are not affected.

How it works

Thunderbird has no setting for this. The add-on uses an experiment API to step in between Thunderbird's message counter and the code that draws the badge: on every change it recounts the inboxes itself, skips the unticked accounts, and passes that number on. Disable or remove the add-on and Thunderbird's own count is back right away.

This relies on Thunderbird internals (MailNotificationService and MailNotificationManager), so a new Thunderbird version can break it. Only tested on macOS.

Build

./build.sh

Writes tobu-badge-<version>.xpi. Install it through Add-ons > gear > Install Add-on From File, or load manifest.json as a temporary add-on via Tools > Developer Tools > Debug Add-ons.

Release

Bump version in manifest.json, commit and push, then tag and push the tag:

git tag v1.0.1
git push origin v1.0.1

Forgejo Actions builds the xpi and publishes it as a release. The run stops if the tag doesn't match the manifest version.

Every push to main also replaces the nightly pre-release. It keeps the manifest version; its release notes name the commit.

License

GPL-3.0-or-later. See LICENSE.