mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 13:47:05 +02:00
Enabled NOOP for Yahoo/AOL
This commit is contained in:
@@ -68,7 +68,7 @@ import javax.mail.internet.InternetAddress;
|
||||
// https://developer.android.com/topic/libraries/architecture/room.html
|
||||
|
||||
@Database(
|
||||
version = 253,
|
||||
version = 254,
|
||||
entities = {
|
||||
EntityIdentity.class,
|
||||
EntityAccount.class,
|
||||
@@ -2575,6 +2575,14 @@ public abstract class DB extends RoomDatabase {
|
||||
}
|
||||
editor.apply();
|
||||
}
|
||||
}).addMigrations(new Migration(253, 254) {
|
||||
@Override
|
||||
public void migrate(@NonNull SupportSQLiteDatabase db) {
|
||||
logMigration(startVersion, endVersion);
|
||||
db.execSQL("UPDATE account SET keep_alive_noop = 1" +
|
||||
" WHERE (host = 'imap.mail.yahoo.com' OR host = 'imap.aol.com')" +
|
||||
" AND pop = " + EntityAccount.TYPE_IMAP);
|
||||
}
|
||||
}).addMigrations(new Migration(998, 999) {
|
||||
@Override
|
||||
public void migrate(@NonNull SupportSQLiteDatabase db) {
|
||||
|
||||
Reference in New Issue
Block a user