Sync with date for Yahoo/AOL

pull/208/head
M66B 2 years ago
parent c52e8ac315
commit 4af49db8ad

@ -3287,6 +3287,9 @@ class Core {
boolean use_modseq = prefs.getBoolean("use_modseq", true);
boolean perform_expunge = prefs.getBoolean("perform_expunge", true);
if (account.isYahoo() || account.isAol())
sync_nodate = false;
if (account.isZoho()) {
sync_unseen = false;
sync_flagged = false;

@ -184,6 +184,14 @@ public class EntityAccount extends EntityOrder implements Serializable {
return (host != null && host.toLowerCase(Locale.ROOT).startsWith("imap.zoho."));
}
boolean isYahoo() {
return "imap.mail.yahoo.com".equalsIgnoreCase(host);
}
boolean isAol() {
return "imap.aol.com".equalsIgnoreCase(host);
}
boolean isTransient(Context context) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean enabled = prefs.getBoolean("enabled", true);

Loading…
Cancel
Save