Sync with date for Yahoo/AOL

This commit is contained in:
M66B
2022-06-11 18:07:18 +02:00
parent c52e8ac315
commit 4af49db8ad
2 changed files with 11 additions and 0 deletions

View File

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