MacOS Mail shows wrong amount of messages in an IMAP folder
I created a mail folder on my IMAP server using MacOS Mail, then moved all my messages of a certain year (say, 2022) into it. MacOS Mail shows there are 888 messages in that folder; other IMAP clients (Outlook, Thunderbird) show 938.
I create another folder and copy all messages into it, MacOS Mail says "Copying 938 messages...", then the new folder again shows 888, and other clients show 938.
I select Mailbox->Rebuild from the menu, the app says "Downloading 938 messages...", then again shows 888.
Same problem (different quantities) with almost every folder I create. I could easily demonstrate.
MacOS 26.0.1, MacBook Pro M1 16"
MacBook Pro 16″, macOS 26.0