mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 16:16:33 +02:00
Added workaround for Zoho search bug
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user