Disable partial fetch for Yahoo

pull/209/head
M66B 3 years ago
parent be5692ffd7
commit 94f04dcaf5

File diff suppressed because it is too large Load Diff

@ -68,7 +68,7 @@ import javax.mail.internet.InternetAddress;
// https://developer.android.com/topic/libraries/architecture/room.html // https://developer.android.com/topic/libraries/architecture/room.html
@Database( @Database(
version = 249, version = 250,
entities = { entities = {
EntityIdentity.class, EntityIdentity.class,
EntityAccount.class, EntityAccount.class,
@ -2500,6 +2500,11 @@ public abstract class DB extends RoomDatabase {
Fts5DbHelper.delete(context); Fts5DbHelper.delete(context);
db.execSQL("UPDATE `message` SET fts = 0"); db.execSQL("UPDATE `message` SET fts = 0");
} }
}).addMigrations(new Migration(249, 250) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
db.execSQL("UPDATE `account` SET partial_fetch = 0 WHERE host = 'imap.mail.yahoo.com'");
}
}).addMigrations(new Migration(998, 999) { }).addMigrations(new Migration(998, 999) {
@Override @Override
public void migrate(@NonNull SupportSQLiteDatabase db) { public void migrate(@NonNull SupportSQLiteDatabase db) {

@ -214,7 +214,8 @@
domain="yahoo\\..*" domain="yahoo\\..*"
id="yahoo" id="yahoo"
link="https://github.com/M66B/FairEmail/blob/master/FAQ.md#user-content-faq88" link="https://github.com/M66B/FairEmail/blob/master/FAQ.md#user-content-faq88"
order="7"> order="7"
partial="false">
<imap <imap
host="imap.mail.yahoo.com" host="imap.mail.yahoo.com"
port="993" port="993"

Loading…
Cancel
Save