Bug 388045

Summary: Sorting by date does not apply to mail groups
Product: [Applications] kmail2 Reporter: Konstantin Kharlamov <Hi-Angel>
Component: message listAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal CC: dvratil, nate
Priority: NOR    
Version: 5.7.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Konstantin Kharlamov 2017-12-19 18:36:20 UTC
Using "Aggregation = mailing list" and "Sorting = by date and time" results in threads ordered only by date of the first mail. This is a major inconvenience, because for looking into mailing list you can't tell which threads was updated and which wasn't.

In contrast, e.g. Thunderbird for sorting takes into attention all mails within a thread, i.e. if some old thread got a new mail, the mail group gets bumped.

# Steps to reproduce:

1. Set "View → Message List → Sorting → • By Date/Time"
   and "View → Message List → Aggregation → • Standard Mailing List" 
2. Send yourself a mail "TestOlder"
3. Send yourself a mail "TestNewer"
4. Reply to "TestOlder"

# Expected:

Thread TestOlder gets bumped

# Actual

TestOlder stays in the same order.
Comment 1 Justin Zobel 2022-11-30 05:28:33 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 2 Konstantin Kharlamov 2022-11-30 09:24:53 UTC
I'm afraid I am not sure how to test it — when I run kmail it shows an error message that says "The Akonadi information management service is not operational", and there's a button "Details", clicking which does nothing.
Comment 3 Konstantin Kharlamov 2022-11-30 14:44:12 UTC
Repro on 5.21.3 (22.08.3). Worth noting though, I didn't manage to exactly complete the steps-to-reproduce due to KMail being utterly broken, but to my delight I have some other ML-like thread which resides in the wrong order, so I can see the problem persists.

> when I run kmail it shows an error message that says […]

Managed to work around that with `rm -r ~/.local/share/akonadi`. Worth noting though, while it made KMail load, it is completely unusable. It tries to load something infinitely, and doesn't show up new emails in the folder even if you forcefully update it. Typical of KMail, tbh.