mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-02 13:14:39 +00:00
Enable no-op for iCloud accounts
This commit is contained in:
parent
bbba762736
commit
5e31abb7b6
2 changed files with 9 additions and 1 deletions
|
@ -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…
Reference in a new issue