[geary/wip/778276-better-flag-updates: 13/17] Increase the remote folder refresh interval.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/778276-better-flag-updates: 13/17] Increase the remote folder refresh interval.
- Date: Tue, 5 Dec 2017 01:58:15 +0000 (UTC)
commit 986a095c483adcb425abb68e501b80e06811e419
Author: Michael James Gratton <mike vee net>
Date: Tue Nov 28 10:24:46 2017 +1100
Increase the remote folder refresh interval.
Now we are getting notified of folder chnages, we can sweep for folder
changes less often.
* src/engine/imap-engine/imap-engine-generic-account.vala
(GenericAccount): Bump remote folder refresh interval from 2 minutes to
15 minutes.
.../imap-engine/imap-engine-generic-account.vala | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/engine/imap-engine/imap-engine-generic-account.vala
b/src/engine/imap-engine/imap-engine-generic-account.vala
index 7635ad2..a6a7b71 100644
--- a/src/engine/imap-engine/imap-engine-generic-account.vala
+++ b/src/engine/imap-engine/imap-engine-generic-account.vala
@@ -8,7 +8,11 @@
private abstract class Geary.ImapEngine.GenericAccount : Geary.Account {
- private const int REFRESH_FOLDER_LIST_SEC = 2 * 60;
+ // This is high since it's an expensive operation, and we'll go
+ // looking changes caused by local operations as they happen, so
+ // we don't need to double check.
+ private const int REFRESH_FOLDER_LIST_SEC = 15 * 60;
+
private const Geary.SpecialFolderType[] SUPPORTED_SPECIAL_FOLDERS = {
Geary.SpecialFolderType.DRAFTS,
Geary.SpecialFolderType.SENT,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]