Thank you, Kostya, for the detailed explanation. It helps a lot.
Unread messages: Inbox:7643, Drafts: 431, sent-mail: 3634.
WOW
I was surprised myself when I looked at it. I don't look at those frequently, especially not at Drafts.
I just cleaned Drafts in one of the accounts.
It is a mixture of several things in that account (and the picture is similar in the other one):
1. Thunderbird sometimes leaves behind without cleaning previous versions even after the message is sent.
2. Sometimes I write a message (or sketch a preliminary version of it), and let it sit there, while I am thinking about it. Then, either the circumstances make it obsolete, or I just decide not to send it, but let it sit there just in case the issue arises again.
3. At least with the stock (Motorola?) e-mail app, - I have barely started versions of replies: either when I touch "reply" accidentally and exit from there, or when I indeed start a reply, but need to switch to a different app before I actually wrote anything. The app saves that copy in the Drafts. Then, sometimes, I start a new reply (forgetting that one existed, or just because its faster - just 1 click, as compared to going to the Drafts folder), or, I am suspecting, even if I continue, the previous draft might be preserved.
And I suspect I might be getting some similar "orphaned" Drafts from Aquamail.
I am not blaming any app for this, - most likely it's just my laziness and sloppiness.
But why someone would be "reading" Drafts? (as opposed to be writing), and better yet, why someone would care if messages in Drafts are read or unread?
I don't know!
It's just that there is no special case for "do not maintain the unread count" for Drafts, as there is for Deleted and Spam.
I rest my case, Your Honor!
And to have *hundreds* of *draft* messages, I mean at all, not just unread -- I thought I'd seen it all... It just never occurred to me.
I am surprised too.
sometimes intermediates copies of the message in progress (especially those created by Thunderbird) do not get deleted
Are they (Thunderbird) going to fix this?
I've stopped reporting bugs to Mozilla projects a while ago, - because they are not that responsive.
Well, as you know, just because there is no real marking "unread", but only "read", it requires the program to do an additional action to mark "read".
Not true. Both IMAP and EWS allow a mail app to specify a message's read/unread state when uploading said message to the server.
And I've never seen Sent messages being marked (or left) Unread (in any of: Gmail, Fastmail, Yandex, Mail.ru, Yahoo, Hotmail, Office 365).
I am sure you are right about that.
I was talking from the point of view of the e-mail message, not the IMAP server, - the "Status: R" (or "RO").
Long time ago, I've started using e-mail messages from the Unix shell: mail, elm, pine (alpine).
Elm and pine would be saving a local copy of the sent message, and that wouldn't go through any IMAP server. And they didn't add any additional status line.
It's been several years since I've stopped using elm and mail (and one of the reasons was that they were unable to work well (or at all) with IMAP servers.
Yesterday, I double-checked that alpine doesn't provide "read" status even when it saves "sent" message via IMAP server (dovecot).
To summarize:
Yes, it's going to be a waste in your specific case.
...
Many thanks for that summary, it helps in adjusting my accounts.