Enabled raw fetch for Yahoo

This commit is contained in:
M66B 2023-02-24 21:07:57 +01:00
parent 2bd3efa149
commit 3ee444242a
2 changed files with 2911 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@ -68,7 +68,7 @@ import javax.mail.internet.InternetAddress;
// https://developer.android.com/topic/libraries/architecture/room.html
@Database(
version = 270,
version = 271,
entities = {
EntityIdentity.class,
EntityAccount.class,
@ -2754,6 +2754,13 @@ public abstract class DB extends RoomDatabase {
db.execSQL("UPDATE account SET partial_fetch = 1" +
" WHERE host = 'imap.mail.yahoo.com' OR host = 'imap.aol.com'");
}
}).addMigrations(new Migration(270, 271) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
logMigration(startVersion, endVersion);
db.execSQL("UPDATE account SET partial_fetch = 0, raw_fetch = 1" +
" WHERE host = 'imap.mail.yahoo.com' OR host = 'imap.aol.com'");
}
}).addMigrations(new Migration(998, 999) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {