mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-18 13:21:02 +00:00
Enable keep/alive noop for Gmail
This commit is contained in:
parent
47925745fc
commit
edf06fb560
3 changed files with 3054 additions and 1 deletions
3045
app/schemas/eu.faircode.email.DB/300.json
Normal file
3045
app/schemas/eu.faircode.email.DB/300.json
Normal file
File diff suppressed because it is too large
Load diff
|
@ -70,7 +70,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 = 299,
|
version = 300,
|
||||||
entities = {
|
entities = {
|
||||||
EntityIdentity.class,
|
EntityIdentity.class,
|
||||||
EntityAccount.class,
|
EntityAccount.class,
|
||||||
|
@ -3039,6 +3039,13 @@ public abstract class DB extends RoomDatabase {
|
||||||
db.execSQL("UPDATE account SET keep_alive_noop = 1" +
|
db.execSQL("UPDATE account SET keep_alive_noop = 1" +
|
||||||
" WHERE host = 'imap.mail.me.com' AND pop = " + EntityAccount.TYPE_IMAP);
|
" WHERE host = 'imap.mail.me.com' AND pop = " + EntityAccount.TYPE_IMAP);
|
||||||
}
|
}
|
||||||
|
}).addMigrations(new Migration(299, 300) {
|
||||||
|
@Override
|
||||||
|
public void migrate(@NonNull SupportSQLiteDatabase db) {
|
||||||
|
logMigration(startVersion, endVersion);
|
||||||
|
db.execSQL("UPDATE account SET keep_alive_noop = 1" +
|
||||||
|
" WHERE host = 'imap.gmail.com' AND pop = " + EntityAccount.TYPE_IMAP);
|
||||||
|
}
|
||||||
}).addMigrations(new Migration(998, 999) {
|
}).addMigrations(new Migration(998, 999) {
|
||||||
@Override
|
@Override
|
||||||
public void migrate(@NonNull SupportSQLiteDatabase db) {
|
public void migrate(@NonNull SupportSQLiteDatabase db) {
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
domain="gmail\\.com"
|
domain="gmail\\.com"
|
||||||
id="gmail"
|
id="gmail"
|
||||||
link="https://github.com/M66B/FairEmail/blob/master/FAQ.md#user-content-faq6"
|
link="https://github.com/M66B/FairEmail/blob/master/FAQ.md#user-content-faq6"
|
||||||
|
noop="true"
|
||||||
order="1"
|
order="1"
|
||||||
type="com.google">
|
type="com.google">
|
||||||
<imap
|
<imap
|
||||||
|
|
Loading…
Reference in a new issue