Enabled NOOP for Yahoo/AOL

pull/210/head
M66B 2 years ago
parent 46583b0f91
commit e7944fdd44

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 = 253, version = 254,
entities = { entities = {
EntityIdentity.class, EntityIdentity.class,
EntityAccount.class, EntityAccount.class,
@ -2575,6 +2575,14 @@ public abstract class DB extends RoomDatabase {
} }
editor.apply(); 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) { }).addMigrations(new Migration(998, 999) {
@Override @Override
public void migrate(@NonNull SupportSQLiteDatabase db) { public void migrate(@NonNull SupportSQLiteDatabase db) {

@ -260,6 +260,7 @@
enabled="false" enabled="false"
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"
noop="true"
order="7" order="7"
partial="false"> partial="false">
<imap <imap
@ -293,6 +294,7 @@
domain="yahoo\\..*" domain="yahoo\\..*"
id="yahoo2" id="yahoo2"
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"
noop="true"
order="7" order="7"
partial="false"> partial="false">
<imap <imap
@ -943,7 +945,8 @@
documentation="For AOL you need to use an app password instead of your normal account password, please &lt;a href=&quot;https://github.com/M66B/FairEmail/blob/master/FAQ.md#user-content-faq88&quot;&gt;see here&lt;/a&gt;." documentation="For AOL you need to use an app password instead of your normal account password, please &lt;a href=&quot;https://github.com/M66B/FairEmail/blob/master/FAQ.md#user-content-faq88&quot;&gt;see here&lt;/a&gt;."
domain="aol\\..*,compuserve\\.com" domain="aol\\..*,compuserve\\.com"
id="aol" id="aol"
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"
noop="true">
<imap <imap
host="imap.aol.com" host="imap.aol.com"
port="993" port="993"

Loading…
Cancel
Save