Bug 391826

Summary: KMail is confused about the order of messages
Product: [Applications] kmail2 Reporter: Halla Rempt <halla>
Component: foldersAssignee: kdepim bugs <kdepim-bugs>
Status: CONFIRMED ---    
Severity: normal CC: achilleas.k, johannes
Priority: NOR    
Version: 5.7.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Screenshot showing the messed up message ordering

Description Halla Rempt 2018-03-13 15:52:15 UTC
KMail uses an imap account. 

I selected 25 messages and saved them in a subfolder. Now kmail shows the messages in one order the messages pane, but on selecting a message I actually get a different one, the order there seems to be reversed. See screenshot
Comment 1 Halla Rempt 2018-03-13 15:53:14 UTC
Created attachment 111372 [details]
Screenshot showing the messed up message ordering

Note that I selected the last message from the bottom but that the message shown is the second from the top.
Comment 2 Johannes Studt 2020-04-08 15:41:27 UTC
I've got the same behaviour up to now.

KMail 5.13.3 (19.12.3)
KDE Frameworks 5.68.0
Qt 5.14.1 (kompiliert gegen 5.14.1)

The shit hits the fan when you want to move the mails back or to another sub folder. Selecting by subject line selects and moves the wrong email, and then the chaos is perfect.

The only way to fix the order is:
- moving the emails away using another mail client
- then let KMail recognize the empty folder
- in the next step move the emails back to the folder using the other mail client again
- let KMail recognize the "new" emails

This is _very_ nerve-stretching, as one has to double check all email sorting operations.