After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 773508 - Sparse folders don't load all mail in IMAP
Sparse folders don't load all mail in IMAP
Status: RESOLVED DUPLICATE of bug 713530
Product: geary
Classification: Other
Component: conversations
master
Other Linux
: Normal normal
: ---
Assigned To: Geary Maintainers
Geary Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-10-26 06:08 UTC by Jose
Modified: 2018-02-19 01:04 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jose 2016-10-26 06:08:17 UTC
I'm testing Geary master (commit e91edf4dbd140e3cc416354cd4ea273a990bf4fa) as a replacement of  Thunderbird at work. We use an Exchange server which I access through Davmail.

When I configure Geary it starts loading messages but contrary to Thunderbird it doesn't load all of them in a bunch. It seems to load only messages which are a couple of months old. When I scroll a folder and I reach the bottom, it loads another bunch of emails and so on until I reach the first email in the folder.
I find it annoying and an usability issue but it's not a bug in itself and it's been already reported. The problem comes for folders which are sparsely used.

Let's say that I have a folder that has messages every few weeks. Since it loads just a couple of months of messages, it will just load one or two conversations. The folder may have messages in the server which are months or years old but they won't get loaded since this folder is not scrollable since it shows just a couple of conversations on initial load.

I think the way Thunderbird loads mails is way better than geary (it's really fast and it loads every folder all at once) but in case you want to keep this way of loading, do it at least asking for mails until you fill the conversation list, so scrolling will load more messages, instead of loading a bunch of messages by date.
Comment 1 Michael Gratton 2017-01-28 04:38:18 UTC
Hi Jose,

Thanks for the bug report - apologies for taking ages to get to it. Can you please try applying the patch in attachment 343016 [details] [review], start geary with "geary -d |& tee geary.out", and attach the output here?

That patch contains some extra debug logging which might help shed some light on what is going on with the sync in this case.
Comment 2 Jose 2017-01-30 08:43:44 UTC
Hello, thanks for your reply. Should I apply the patch over the master branch or the 0.11 branch?
Comment 3 Michael Gratton 2017-02-01 14:22:37 UTC
(In reply to Jose from comment #2)
> Hello, thanks for your reply. Should I apply the patch over the master
> branch or the 0.11 branch?

I think it should apply to both, so which ever is more convenient for you?
Comment 4 Jose 2017-02-01 15:08:36 UTC
It seems that this patch does not apply anymore:

 git apply debug.patch
error: patch failed: src/engine/imap-db/imap-db-folder.vala:16
error: src/engine/imap-db/imap-db-folder.vala: patch does not apply

I've tried both master and 0.11 branch. Looking at the code of this file, line 16 has already the change applied but line 1230 is not similar to the one expected by the patch (I think that line has moved to line 1238 but since I don't know much about Vala or how Geary works I'm not sure about how to modify the diff file or if it fits anymore).
Comment 5 Michael Gratton 2018-02-07 06:43:51 UTC
Apologies for the late reply, can you please try current master and see if this problem still exists? A number of improvements for sync have gone in since 0.12.

Thanks!
Comment 6 Jose 2018-02-09 08:49:05 UTC
Hello, I've tried with the latest master and it works correctly. Now the conversations list gets filled. Thank you.
Comment 7 Michael Gratton 2018-02-19 01:04:09 UTC
Great, thanks for testing that out. These fixes will be released in 0.13.

*** This bug has been marked as a duplicate of bug 713530 ***