Bug 311781

Summary: Akonadi should do mail sorting itself and allow applications to query a subset of a mailbox
Product: [Frameworks and Libraries] Akonadi Reporter: Dennis Schridde <heri+kde>
Component: serverAssignee: kdepim bugs <pim-bugs-null>
Status: NEEDSINFO WAITINGFORINFO    
Severity: wishlist CC: aristsakas
Priority: NOR    
Version First Reported In: 1.8.1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Dennis Schridde 2012-12-16 15:40:01 UTC
Currently, whenever I open a mailbox with KMail/Kontact, it seems to retrieve the complete folder contents from Akonadi. This often takes a long time (several seconds up to half a minute), during which the messages displayed by Kontact are moving around, while they are being sorted and collated into threads. This makes it hard or impossible to view them during that time.

The email sorting (i.e. by date, arrival time, or whatever is selected in Kontact) could be done within Akonadi itself. Then it would be possible for applications like Kontact to query just a subset of the messages within the mailbox, i.e. those that will actually be displayed.

I expect that this would solve the annoying moving-messages problem and also speed up display in general. As a further enhancement Kontact could also prefetch messages that are not yet displayed - i.e. progressively request the rest of the mailbox.

Reproducible: Always
Comment 1 Justin Zobel 2021-03-09 05:46:31 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 2 aristsakas 2026-01-23 20:30:48 UTC
Thank you for the bug report. Unfortunately we were not able to get to it yet. Can we ask you to please check if this is still an issue with Akonadi 25.12.0
Comment 3 cwo 2026-01-28 21:14:39 UTC
.
Comment 4 Bug Janitor Service 2026-02-12 03:57:34 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!