Skip to content

Commit

Permalink
use email address as fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Virkus committed Aug 2, 2020
1 parent 024344d commit 4e4ade8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mail/mail_account.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ class MailAccount extends JsonSerializable {
static MailAccount fromDiscoveredSetings(
String name, String email, String password, ClientConfig config,
{String userName, String outgoingClientDomain}) {
userName ??= config.preferredIncomingImapServer.getUserName(email);
userName ??= config.preferredIncomingServer.getUserName(email);
userName ??= email;
var auth = PlainAuthentication(userName, password);
var incoming = MailServerConfig()
..authentication = auth
Expand Down

0 comments on commit 4e4ade8

Please sign in to comment.