mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-05 12:24:26 +01:00
Increased search timeout
This commit is contained in:
@@ -310,7 +310,7 @@ public class FragmentGmail extends FragmentBase {
|
||||
List<EntityFolder> folders;
|
||||
|
||||
String aprotocol = provider.imap.starttls ? "imap" : "imaps";
|
||||
try (EmailService iservice = new EmailService(context, aprotocol, null, false, true, true)) {
|
||||
try (EmailService iservice = new EmailService(context, aprotocol, null, false, EmailService.PURPOSE_CHECK, true)) {
|
||||
iservice.connect(provider.imap.host, provider.imap.port, EmailService.AUTH_TYPE_GMAIL, null, user, password, null);
|
||||
|
||||
folders = iservice.getFolders();
|
||||
@@ -320,7 +320,7 @@ public class FragmentGmail extends FragmentBase {
|
||||
}
|
||||
|
||||
String iprotocol = provider.smtp.starttls ? "smtp" : "smtps";
|
||||
try (EmailService iservice = new EmailService(context, iprotocol, null, false, true, true)) {
|
||||
try (EmailService iservice = new EmailService(context, iprotocol, null, false, EmailService.PURPOSE_CHECK, true)) {
|
||||
iservice.connect(provider.smtp.host, provider.smtp.port, EmailService.AUTH_TYPE_GMAIL, null, user, password, null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user