Issue Description
I got a report that suddenly old mail shows up on the inbox. The same I can confirm on GMail on mobile and Thunderbird on computer for my own mail. In Thunderbird I can sort and it resorts properly, but that is a manual override. And it does not change display in Gmail App. So it seems the database index is sorting correctly. Happened after we moved a large mail account but obviously not just on that large mail account.
Log is on trace, but does not show anything in the UI
I have not even an idea how to debug this, any help much appreciated!
Expected Behavior
Display eMail in descending date order by default.
Actual Behavior
Inbox corrupted, showing two newer mails then mails from 2025.
In Thunderbird mails still show, in GMail mails between last mail and 2025 went amiss.
Reproduction Steps
Open Mail Client.
Where can I recreate the mail index?
What logs would be relevant. I cannot see any. But as that happens on multiple mail clients, the cause is very likely on the server side?
Relevant Log Output
Don’t know what is “relevant”?
Jun 03 01:43:29 mindship-syl stalwart[2614]: Write batch operation
Jun 03 01:43:29 mindship-syl stalwart[2614]: Write batch operation
Jun 03 01:43:29 mindship-syl stalwart[2614]: Write batch operation
Jun 03 01:43:29 mindship-syl stalwart[2614]: Write batch operation
Jun 03 01:43:29 mindship-syl stalwart[2614]: Write batch operation
Jun 03 01:43:29 mindship-syl stalwart[2614]: Write batch operation
Jun 03 01:43:29 mindship-syl stalwart[2614]: Write batch operation
Jun 03 01:43:29 mindship-syl stalwart[2614]: Write batch operation
Jun 03 01:43:29 mindship-syl stalwart[2614]: Write batch operation
Jun 03 01:43:29 mindship-syl stalwart[2614]: Data store iteration operation
Jun 03 01:43:48 mindship-syl stalwart[2614]: IMAP connection started
Jun 03 01:43:48 mindship-syl stalwart[2614]: Raw IMAP input received
Jun 03 01:43:48 mindship-syl stalwart[2614]: Cache hit
Jun 03 01:43:48 mindship-syl stalwart[2614]: Cache hit
Jun 03 01:43:48 mindship-syl stalwart[2614]: Cache miss
Jun 03 01:43:48 mindship-syl stalwart[2614]: Cache miss
Jun 03 01:43:48 mindship-syl stalwart[2614]: Cache hit
Jun 03 01:43:48 mindship-syl stalwart[2614]: Data store iteration operation
Jun 03 01:43:48 mindship-syl stalwart[2614]: Authentication successful
Jun 03 01:43:48 mindship-syl stalwart[2614]: Data store iteration operation
Jun 03 01:43:48 mindship-syl stalwart[2614]: Data store iteration operation
Jun 03 01:43:48 mindship-syl stalwart[2614]: Data store iteration operation
Jun 03 01:43:48 mindship-syl stalwart[2614]: Cache miss
Jun 03 01:43:48 mindship-syl stalwart[2614]: Raw IMAP output sent
Jun 03 01:43:48 mindship-syl stalwart[2614]: Raw IMAP input received
Jun 03 01:43:48 mindship-syl stalwart[2614]: IMAP ID command
Jun 03 01:43:48 mindship-syl stalwart[2614]: Raw IMAP output sent
Jun 03 01:43:48 mindship-syl stalwart[2614]: Raw IMAP input received
Jun 03 01:43:48 mindship-syl stalwart[2614]: Cache hit
Jun 03 01:43:48 mindship-syl stalwart[2614]: Data store iteration operation
Jun 03 01:43:48 mindship-syl stalwart[2614]: Cache hit
Jun 03 01:43:48 mindship-syl stalwart[2614]: Data store iteration operation
Jun 03 01:43:48 mindship-syl stalwart[2614]: Cache hit
Jun 03 01:43:48 mindship-syl stalwart[2614]: IMAP SELECT command
Jun 03 01:43:48 mindship-syl stalwart[2614]: Raw IMAP output sent
Jun 03 01:43:48 mindship-syl stalwart[2614]: Cache hit
Jun 03 01:43:48 mindship-syl stalwart[2614]: Data store iteration operation
Jun 03 01:43:48 mindship-syl stalwart[2614]: Cache hit
Jun 03 01:43:48 mindship-syl stalwart[2614]: IMAP LIST command
Jun 03 01:43:48 mindship-syl stalwart[2614]: Raw IMAP output sent
Jun 03 01:43:48 mindship-syl stalwart[2614]: Raw IMAP input received
Jun 03 01:43:48 mindship-syl stalwart[2614]: Data store iteration operation
Jun 03 01:43:48 mindship-syl stalwart[2614]: Cache hit
Jun 03 01:43:48 mindship-syl stalwart[2614]: IMAP SEARCH command
Jun 03 01:43:48 mindship-syl stalwart[2614]: Raw IMAP output sent
Jun 03 01:43:48 mindship-syl stalwart[2614]: Raw IMAP input received
Jun 03 01:43:48 mindship-syl stalwart[2614]: IMAP ID command
Jun 03 01:43:48 mindship-syl stalwart[2614]: Raw IMAP output sent
Jun 03 01:43:48 mindship-syl stalwart[2614]: Raw IMAP input received
Jun 03 01:43:48 mindship-syl stalwart[2614]: Data store iteration operation
Jun 03 01:43:48 mindship-syl stalwart[2614]: Cache hit
Jun 03 01:43:48 mindship-syl stalwart[2614]: IMAP SEARCH command
Jun 03 01:43:48 mindship-syl stalwart[2614]: Raw IMAP output sent
Stalwart Version
v0.16.x
Installation Method
Built from source
Database Backend
PostgreSQL
Blob Storage
Filesystem
Search Engine
Internal
Directory Backend
Internal
Additional Context
Gmail Version 2026.05.11
Thunderbird 140.11
Stalwart 0.16.5
stalwart-cli 1.0.6
I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.
on
I have searched this support forum (open and closed topics) and confirm this is not a duplicate.
on
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
on