mirror of
https://github.com/chatmail/core.git
synced 2026-04-24 08:56:29 +03:00
auto_outlook: convert <Protocol> type to lowercase before comparison
This commit is contained in:
@@ -70,7 +70,9 @@ fn outlk_parse_xml(xml_raw: &str) -> Result<ParsingResult, Error> {
|
||||
|
||||
if let Some(ref tag) = current_tag {
|
||||
match tag.as_str() {
|
||||
"type" => outlk_ad.config_type = Some(val.trim().to_string()),
|
||||
"type" => {
|
||||
outlk_ad.config_type = Some(val.trim().to_lowercase().to_string())
|
||||
}
|
||||
"server" => outlk_ad.config_server = val.trim().to_string(),
|
||||
"port" => outlk_ad.config_port = val.trim().parse().unwrap_or_default(),
|
||||
"ssl" => outlk_ad.config_ssl = val.trim().to_string(),
|
||||
|
||||
Reference in New Issue
Block a user