Enable no-op for iCloud accounts

pull/215/head
M66B 4 months ago
parent bbba762736
commit 5e31abb7b6

@ -70,7 +70,7 @@ import javax.mail.internet.InternetAddress;
// https://developer.android.com/topic/libraries/architecture/room.html
@Database(
version = 298,
version = 299,
entities = {
EntityIdentity.class,
EntityAccount.class,
@ -3032,6 +3032,13 @@ public abstract class DB extends RoomDatabase {
db.execSQL("DROP VIEW IF EXISTS `account_view`");
db.execSQL("CREATE VIEW IF NOT EXISTS `account_view` AS " + TupleAccountView.query);
}
}).addMigrations(new Migration(298, 299) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
logMigration(startVersion, endVersion);
db.execSQL("UPDATE account SET keep_alive_noop = 1" +
" WHERE host = 'imap.mail.me.com' AND pop = " + EntityAccount.TYPE_IMAP);
}
}).addMigrations(new Migration(998, 999) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {

@ -718,6 +718,7 @@
appPassword="true"
domain="icloud\\.com,me\\.com,mac\\.com"
link="https://github.com/M66B/FairEmail/blob/master/FAQ.md#user-content-faq148"
noop="true"
user="local">
<imap
host="imap.mail.me.com"

Loading…
Cancel
Save