Set GMX keep alive interval to 9 minutes

This commit is contained in:
M66B 2019-07-08 10:21:27 +02:00
parent f0039c234a
commit 91a4f527ba
4 changed files with 7 additions and 0 deletions

3
FAQ.md
View File

@ -895,6 +895,9 @@ You could disable this option for example for the sent folder and the archive.
Synchronizing messages at night is mostly not useful, so you can save on battery usage by not synchronizing at night.
In the settings you can select a schedule for message synchronization (this is a pro feature). See also [this FAQ](#user-content-faq78).
Some providers don't follow the IMAP standard and don't keep connections open long enough, forcing FairEmail to reconnect often.
You can workaround this by lowering the keep-alive interval in the advanced account settings to for example 9 minutes.
If you got the message *This provider does not support push messages* while configuring an account,
consider switching to a modern provider which supports push messages (IMAP IDLE) to reduce battery usage.

View File

@ -50,6 +50,7 @@ import java.util.Locale;
public class EmailProvider {
public String name;
public int order;
public int keepalive;
public String link;
public String type;
public String imap_host;
@ -106,6 +107,7 @@ public class EmailProvider {
provider = new EmailProvider();
provider.name = xml.getAttributeValue(null, "name");
provider.order = xml.getAttributeIntValue(null, "order", Integer.MAX_VALUE);
provider.keepalive = xml.getAttributeIntValue(null, "keepalive", 0);
provider.link = xml.getAttributeValue(null, "link");
provider.type = xml.getAttributeValue(null, "type");
} else if ("imap".equals(name)) {

View File

@ -253,6 +253,7 @@ public class FragmentAccount extends FragmentBase {
etRealm.setText(null);
etName.setText(position > 1 ? provider.name : null);
etInterval.setText(provider.keepalive > 0 ? Integer.toString(provider.keepalive) : null);
grpFolders.setVisibility(View.GONE);
btnSave.setVisibility(View.GONE);

View File

@ -115,6 +115,7 @@
</provider>
<provider
name="gmx.com"
keepalive="9"
link="https://support.gmx.com/pop-imap/imap/index.html#breadcrumb_help_pop-imap_imap_server">
<imap
host="imap.gmx.com"