configure: refactor to try various server domains

For IMAP, example.org, imap.example.org and mail.example.org are tried.
For SMTP, example.org, smtp.example.org and mail.example.org are tried.
This commit is contained in:
Alexander Krotov
2020-07-29 00:00:00 +03:00
committed by link2xt
parent 526e76c59f
commit 00c1383419
2 changed files with 203 additions and 152 deletions

View File

@@ -25,7 +25,7 @@ impl Default for CertificateChecks {
}
}
#[derive(Default, Debug)]
#[derive(Default, Debug, Clone)]
pub struct LoginParam {
pub addr: String,
pub mail_server: String,