Kmail read/unread status out of sync with server

I have many (about 10% of the total, of all ages) emails not correctly picking up the read/unread status on the server. I suspect it is failing to pick up changes in read/unread status on the server, in particular, although I can’t say definitively that this is the only situation where a mismatch occurs.

Example, focusing on the former:

  1. Find an email in a subfolder on (e.g.) Outlook (I work primarily in subfolders)
  2. Mark it as read in its web interface
  3. Give it a minute or two then switch to KMail and update (F5) the relevant subfolder (or CTRL-F5 on the whole account).
  4. Expected: same email to change to ‘read’ status in KMail
    Observed: NO change to status (despite observing a brief message, bottom right, confirming it was acting on the folder in question), not then or any time thereafter. Neither the passing of time nor repeated F5 updates cause it to ever get into sync.

Does this seem like a bug (to the more seasoned participants in this forum)?

Changes of status in the other direction seem to work fine (mark as read in KMail → immediately shows as read on server).

It is possible that there are also emails being brought into KMail with the wrong status in the first place, but I haven’t been able to test that due to another bug making it difficult to get a consistent baseline to compare against (F5 update doesn’t always fetch all the new email that are there to be found, but I’ll raise this separately).

Is there a way to trigger a full resync with the server in question?

I tried clearing the Akondi cache, but that didn’t seem to make any difference. That said, I don’t understand Akondi well enough to know whether that would be expected to make a difference or not. That said, even if I got KMail and the server properly in sync, what are the chances of it staying that way?

This seems like a bug, so I’ll raise it as such, along with all the others I’ve found in my couple of days with Mail, but raising it here first in case I’m missing something.