Bug 370618 - Cannot sync large amounts of mail through IMAP
Summary: Cannot sync large amounts of mail through IMAP
Status: CONFIRMED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 5.8.2
Platform: Other Linux
: NOR grave
Target Milestone: ---
Assignee: Christian Mollekopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-13 01:06 UTC by Janek Bevendorff
Modified: 2021-09-09 23:27 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Janek Bevendorff 2016-10-13 01:06:02 UTC
I've really been wanting to switch from Thunderbird to KMail for years now, but every time I try it, I run into the same issue again: Akonadi can't cope with my mail account. The raw maildir on the server has a size of 1.4GB and consists of thousands of mails, many with attachments.
There are actually quite a few reports of hangs and freezes here, but I'm not quite sure whether any of them is related.

My problem is: Akonadi starts syncing and then suddenly hangs and nothing's happening anymore. When I turn off "Download all mails for offline use", it sometimes gets to 100%, but instead of finishing, it continues with 110% until something like 180%. I also can't see any mails in KMail until Akonadi has finished the full sync (which can take a long time or doesn't happend at all).

Reproducible: Always

Steps to Reproduce:
1. Set up a mail account with > 1GB of mail
2. Try to sync it via Akonadi IMAP resource
3. Get frustrated

Actual Results:  
KMail is completely useless because I can't get Akonadi to fetch mails from my IMAP account.

Expected Results:  
Akonadi shouldn't hang, no matter how big the maildir behind the IMAP account is and it houldn't be necessary to restart Akonadi a hundred times to get through all the mails. Akonadi should also deliver already synced mails to KMail immediately, so that I don't have to wait for the full sync to finish before I can see any mail. A full sync, especially with download for offline use can take minutes or even hours. However, fetching just the mail headers is fast and should enable KMail to list mails within seconds, even for very large maildirs (Thunderbird actually manages to do that). It should also be possible to move mails to the front of the download queue, so I can click a mail in KMail during sync to show its contents immediately.
Comment 1 nvlplx 2018-07-06 12:43:34 UTC
I have the same problem with present versions of akonadi and Kmail, with all my IMAP accounts. 

Please, which kind of trace should we provide to help debugging this. It's VERY annoying (I don't want to switch to thunderbird).
Comment 2 northon_patrick3 2021-09-09 23:27:05 UTC
Same problem here, I had to archive most of my old mail into an archive folder to get my inbox working. But then the archive folder won't sync all my mail, it stop at 16400 emails. If I try again, it seem to restart from the start, never finishing. I am not sure who is the culprit, is yahoo limiting the amount of mail I can sync in one go?