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.
This commit is contained in:
Michael James Gratton 2017-11-28 10:24:46 +11:00
parent edd817240e
commit 7c72dac489

View file

@ -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,