[geary/wip/prefetcher-missing-mail: 2/4] Ensure EmailPrefetecher doesn't ignore mail found on folder open
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/prefetcher-missing-mail: 2/4] Ensure EmailPrefetecher doesn't ignore mail found on folder open
- Date: Wed, 28 Aug 2019 00:19:51 +0000 (UTC)
commit f4aeac5584d460e8a4564e0af9c3c9364587700e
Author: Michael Gratton <mike vee net>
Date: Wed Aug 28 10:13:10 2019 +1000
Ensure EmailPrefetecher doesn't ignore mail found on folder open
EmailPrefetecher was deliberately ignoring new mail found during
folder normalisation on folder open to avoid the kind of deadlock
solved by the last commit. Since this is no longer a problem, it can
now stop dropping those.
This should fix a number of issues where email is only partly
downloaded.
src/engine/imap-engine/imap-engine-email-prefetcher.vala | 5 -----
1 file changed, 5 deletions(-)
---
diff --git a/src/engine/imap-engine/imap-engine-email-prefetcher.vala
b/src/engine/imap-engine/imap-engine-email-prefetcher.vala
index 2bffda31..c2f58f98 100644
--- a/src/engine/imap-engine/imap-engine-email-prefetcher.vala
+++ b/src/engine/imap-engine/imap-engine-email-prefetcher.vala
@@ -65,11 +65,6 @@ private class Geary.ImapEngine.EmailPrefetcher : Geary.BaseObject {
}
private void on_local_expansion(Gee.Collection<Geary.EmailIdentifier> ids) {
- // it's possible to be notified of an append prior to remote open; don't prefetch until
- // that occurs
- if (folder.get_open_state() != Geary.Folder.OpenState.REMOTE)
- return;
-
// acquire here since .begin() only schedules for later
active_sem.acquire();
do_prepare_new_async.begin(ids);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]