mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Increased search timeout
This commit is contained in:
@@ -615,7 +615,7 @@ public class FragmentAccount extends FragmentBase {
|
||||
|
||||
// Check IMAP server / get folders
|
||||
String protocol = "imap" + (starttls ? "" : "s");
|
||||
try (EmailService iservice = new EmailService(context, protocol, realm, insecure, true, true)) {
|
||||
try (EmailService iservice = new EmailService(context, protocol, realm, insecure, EmailService.PURPOSE_CHECK, true)) {
|
||||
iservice.connect(host, Integer.parseInt(port), auth, provider, user, password, fingerprint);
|
||||
|
||||
result.idle = iservice.hasCapability("IDLE");
|
||||
@@ -983,7 +983,7 @@ public class FragmentAccount extends FragmentBase {
|
||||
EntityFolder inbox = null;
|
||||
if (check) {
|
||||
String protocol = "imap" + (starttls ? "" : "s");
|
||||
try (EmailService iservice = new EmailService(context, protocol, realm, insecure, true, true)) {
|
||||
try (EmailService iservice = new EmailService(context, protocol, realm, insecure, EmailService.PURPOSE_CHECK, true)) {
|
||||
iservice.connect(host, Integer.parseInt(port), auth, provider, user, password, fingerprint);
|
||||
|
||||
for (Folder ifolder : iservice.getStore().getDefaultFolder().list("*")) {
|
||||
|
||||
Reference in New Issue
Block a user