Allow empty username

This commit is contained in:
M66B
2021-03-11 10:18:04 +01:00
parent f912c9346f
commit c3e6d15bb6
4 changed files with 7 additions and 4 deletions

View File

@@ -593,6 +593,9 @@ public class EmailService implements AutoCloseable {
//System.setProperty("mail.socket.debug", Boolean.toString(debug));
isession.addProvider(new GmailSSLProvider());
if (TextUtils.isEmpty(user))
user = null;
if ("pop3".equals(protocol) || "pop3s".equals(protocol)) {
iservice = isession.getStore(protocol);
iservice.connect(address.getHostAddress(), port, user, null);