Added workaround for Zoho search bug

pull/194/merge
M66B 3 years ago
parent 6624975514
commit a5da42e925

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

@ -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);

Loading…
Cancel
Save