Informazioni su questo componente aggiuntivo
The common folders to be taken into account can be selected in the options panel of the add-on. The folders preselected are: spam, trash, drafts and templates.
Why this extension might be useful?
IMAP mail providers like gmx automatically move emails to the spam folder and these emails remain there with the status "unread". Thunderbird shows the accumulated number of ALL unread emails for an account next to the account name. But unread emails, e.g. in the spam folder, are not relevant for most users. It can therefore make sense to automatically mark all emails in the spam folder as "read".
The onFolderInfoChanged event is listened to. Unread emails in the affected folder are determined and their status is set to "read".
The folders to which the functionality is applied are selectable (configurable) in the options panel of the add-on.
To test the functionality, an email in a configured folder (e.g. spam folder) can be marked as unread using the context menu. A very short moment later, this email is automatically marked as read by this add-on.
I think the functionality should be compatible with other addons.
The source code is on Github.
I am grateful for comments, hints and suggestions.
It was a pleasure developing this little add-on and I would be happy if someone finds it useful.