<commit_before># unread-badge

This is a simple Thunderbird extension for displaying an unread mail message count
on the Windows taskbar.

Currently (up until at least Thunderbird 60.0, at the time of this writing) the only
unread notification option is to put an icon into the notification area (or,
[as it is often called](https://devblogs.microsoft.com/oldnewthing/20030910-00/?p=42583),
the system tray). Windows 7 and later allow you to badge the application's icon itself
with an overlay. The Mozilla core [supports setting the overlay](https://bugzilla.mozilla.org/show_bug.cgi?id=515907),
but the [bug for actually making Thunderbird do so](https://bugzilla.mozilla.org/show_bug.cgi?id=494137)
has existed since 2009 and is as yet unresolved. (Please vote for it!)

So I cobbled this together.

This extension will add an overlay for the combined unread message count across all
mail accounts.

A configuration panel lets you choose between counting messages in all folders, or
to count the primary inbox only.

## Contributors

- [@bstreiff](https://github.com/bstreiff/) initially threw it together and occasionally reviews PRs.
- [@abcminiuser](https://github.com/abcminiuser) fixed filtering to ignore non-mail items.
- [@homo-programmatis](https://github.com/homo-programmatis) fixed several longstanding compatibility issues, first with Thunderbird 38+ then with 60+.<commit_msg>Update README with build steps<commit_after># unread-badge

This is a simple Thunderbird extension for displaying an unread mail message count
on the Windows taskbar.

Currently (up until at least Thunderbird 60.0, at the time of this writing) the only
unread notification option is to put an icon into the notification area (or,
[as it is often called](https://devblogs.microsoft.com/oldnewthing/20030910-00/?p=42583),
the system tray). Windows 7 and later allow you to badge the application's icon itself
with an overlay. The Mozilla core [supports setting the overlay](https://bugzilla.mozilla.org/show_bug.cgi?id=515907),
but the [bug for actually making Thunderbird do so](https://bugzilla.mozilla.org/show_bug.cgi?id=494137)
has existed since 2009 and is as yet unresolved. (Please vote for it!)

So I cobbled this together.

This extension will add an overlay for the combined unread message count across all
mail accounts.

A configuration panel lets you choose between counting messages in all folders, or
to count the primary inbox only.

## Building
- Install [nodejs](https://nodejs.org/) (I've used 12.19.0 LTS).
- `npm run build`
- output will be in the `xpi` directory.

## Contributors

- [@bstreiff](https://github.com/bstreiff/) initially threw it together and occasionally reviews PRs.
- [@abcminiuser](https://github.com/abcminiuser) fixed filtering to ignore non-mail items.
- [@homo-programmatis](https://github.com/homo-programmatis) fixed several longstanding compatibility issues, first with Thunderbird 38+ then with 60+.
{'fraction_non_alphanumeric': 0.08469387755102041, 'fraction_numerical': 0.028231292517006804, 'mean_word_length': 4.905622489959839, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 13, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3152866', 'n_tokens_mistral': 910, 'n_tokens_neox': 791, 'n_words': 358}