mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Allow empty username
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user