Fixed falling back to IPv4

This commit is contained in:
M66B
2019-07-28 19:16:17 +02:00
parent ea0b69f46b
commit e263ee43f6
7 changed files with 46 additions and 24 deletions

View File

@@ -536,7 +536,7 @@ public class FragmentAccount extends FragmentBase {
Session isession = Session.getInstance(props, null);
isession.setDebug(true);
try (IMAPStore istore = (IMAPStore) isession.getStore("imap" + (starttls ? "" : "s"))) {
ConnectionHelper.connect(context, isession, istore, host, Integer.parseInt(port), user, password);
ConnectionHelper.connect(context, istore, host, Integer.parseInt(port), user, password);
result.idle = istore.hasCapability("IDLE");
@@ -893,7 +893,7 @@ public class FragmentAccount extends FragmentBase {
isession.setDebug(true);
try (IMAPStore istore = (IMAPStore) isession.getStore("imap" + (starttls ? "" : "s"))) {
ConnectionHelper.connect(context, isession, istore, host, Integer.parseInt(port), user, password);
ConnectionHelper.connect(context, istore, host, Integer.parseInt(port), user, password);
for (Folder ifolder : istore.getDefaultFolder().list("*")) {
// Check folder attributes