Skip to content

Commit

Permalink
imp - bkp - Fixed auto detection logic
Browse files Browse the repository at this point in the history
---

We've fixed auto config being engaged even when told not to.

  - Backportable for 0.1.1
  - Backportable for 0.1.0

---

Type: imp
Breaking: False
Doc Required: False
Backport Required: True
Part: 1/1
  • Loading branch information
AptiviCEO committed Jan 22, 2025
1 parent 6c1ebcc commit f4387b6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ public enum ServerType
}
Authentication.Password = InputTools.ReadLineNoInput();

string DynamicAddressIMAP = ServerDetect(Username, ServerType.IMAP);
string DynamicAddressSMTP = ServerDetect(Username, ServerType.SMTP);
string DynamicAddressIMAP = AutoDetectServer ? ServerDetect(Username, ServerType.IMAP) : "";
string DynamicAddressSMTP = AutoDetectServer ? ServerDetect(Username, ServerType.SMTP) : "";

if (!string.IsNullOrEmpty(DynamicAddressIMAP) & !string.IsNullOrEmpty(DynamicAddressSMTP) & AutoDetectServer)
if (!string.IsNullOrEmpty(DynamicAddressIMAP) && !string.IsNullOrEmpty(DynamicAddressSMTP))
return ParseAddresses(DynamicAddressIMAP, 0, DynamicAddressSMTP, 0);
else
return PromptServer();
Expand Down

0 comments on commit f4387b6

Please sign in to comment.