mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-31 20:25:38 +00:00
Minimum chunk size for Gmail and Outlook
This commit is contained in:
parent
3ab911f3dd
commit
e79abbbe16
2 changed files with 7 additions and 0 deletions
|
@ -3121,6 +3121,9 @@ class Core {
|
|||
|
||||
// https://datatracker.ietf.org/doc/html/rfc2683#section-3.2.1.5
|
||||
int chunk_size = prefs.getInt("chunk_size", DEFAULT_SYNC_CHUNCK_SIZE);
|
||||
if (chunk_size < 200 &&
|
||||
(account.isGmail() || account.isOutlook()))
|
||||
chunk_size = 200;
|
||||
List<List<Pair<Long, Long>>> chunks = Helper.chunkList(ranges, chunk_size);
|
||||
|
||||
Log.i(folder.name + " executing uid fetch count=" + uids.size() +
|
||||
|
|
|
@ -163,6 +163,10 @@ public class EntityAccount extends EntityOrder implements Serializable {
|
|||
return "imap.gmail.com".equalsIgnoreCase(host);
|
||||
}
|
||||
|
||||
boolean isOutlook() {
|
||||
return "outlook.office365.com".equalsIgnoreCase(host);
|
||||
}
|
||||
|
||||
boolean isYahooJp() {
|
||||
return "imap.mail.yahoo.co.jp".equalsIgnoreCase(host);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue