Bug 319398

Summary: IMAP resource fetches messages from older to newer, demanding a lot of time to usable Kmail
Product: [Frameworks and Libraries] Akonadi Reporter: Cochise César <cochisecesar>
Component: IMAP resourceAssignee: Christian Mollekopf <chrigi_1>
Status: CONFIRMED ---    
Severity: wishlist CC: bugs.kde.org, kdepim-bugs, mollekopf, vkrause
Priority: NOR    
Version: 4.10   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Cochise César 2013-05-06 06:36:45 UTC
I have some years old Gmail accounts with GBs of messages. When I configure in Kmail, the fetch order is from older to newer, them I have to wait a long time before to get my last messages.
I don't tested the behavior with other mail resources, like POP3.


Reproducible: Always
Comment 1 Cochise César 2013-05-06 07:13:29 UTC
Additional information

This behavior only happens if inscription (Or subscriptions. My KDE is localized) in the server are enabled.
Comment 2 Kevin Ottens 2013-11-16 07:27:29 UTC
The IMAP resource has a new maintainer, reassigning to him.
Comment 3 Christian Mollekopf 2013-12-03 17:42:52 UTC
This would require downloading the messages in batches, starting with the highest UID first.
Comment 4 Erik Quaeghebeur 2017-08-22 13:12:33 UTC
(In reply to Christian Mollekopf from comment #3)
> This would require downloading the messages in batches, starting with the
> highest UID first.

From the IMAP-perspective, only (part of) the headers and MIME structure of the mails need to be fetched first; the MIME payloads can be fetched later, even as-needed (this is how pure IMAP clients such as Trojita do it). For that the akonadi database needs to be able to store such partial fetches.