1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-29 03:05:31 +00:00

Added workaround for Zoho search bug

This commit is contained in:
M66B 2021-10-26 13:22:25 +02:00
parent 6624975514
commit a5da42e925
2 changed files with 9 additions and 0 deletions

View file

@ -2877,6 +2877,11 @@ class Core {
boolean use_modseq = prefs.getBoolean("use_modseq", true);
boolean perform_expunge = prefs.getBoolean("perform_expunge", true);
if (account.isZoho()) {
sync_unseen = false;
sync_flagged = false;
}
Log.i(folder.name + " start sync after=" + sync_days + "/" + keep_days +
" quick=" + sync_quick_imap + " force=" + force +
" sync unseen=" + sync_unseen + " flagged=" + sync_flagged +

View file

@ -175,6 +175,10 @@ public class EntityAccount extends EntityOrder implements Serializable {
return "imap.seznam.cz".equalsIgnoreCase(host);
}
boolean isZoho() {
return (host != null && host.toLowerCase(Locale.ROOT).startsWith("imap.zoho."));
}
boolean isTransient(Context context) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean enabled = prefs.getBoolean("enabled", true);