mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 23:26:12 +02:00
Refactoring
This commit is contained in:
@@ -309,8 +309,12 @@ public class FragmentPop extends FragmentBase {
|
||||
// Check POP3 server
|
||||
if (check) {
|
||||
String protocol = "pop3" + (starttls ? "" : "s");
|
||||
try (EmailService iservice = new EmailService(context, protocol, null, insecure, EmailService.PURPOSE_CHECK, true)) {
|
||||
iservice.connect(host, Integer.parseInt(port), EmailService.AUTH_TYPE_PASSWORD, null, user, password, null);
|
||||
try (EmailService iservice = new EmailService(
|
||||
context, protocol, null, insecure, EmailService.PURPOSE_CHECK, true)) {
|
||||
iservice.connect(
|
||||
host, Integer.parseInt(port),
|
||||
EmailService.AUTH_TYPE_PASSWORD, null,
|
||||
user, password, null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user