Browse Source

melib/imap: ignore case for supported capability report in

MailBackendExtensionStatus
master
Manos Pitsidianakis 2 years ago
parent
commit
7b324359c5
Signed by: epilys GPG Key ID: 73627C2F690DF710
  1. 5
      melib/src/backends/imap.rs

5
melib/src/backends/imap.rs

@ -273,7 +273,10 @@ impl MailBackend for ImapType {
}
}
_ => {
if SUPPORTED_CAPABILITIES.contains(&name.as_str()) {
if SUPPORTED_CAPABILITIES
.iter()
.any(|c| c.eq_ignore_ascii_case(&name.as_str()))
{
*status = MailBackendExtensionStatus::Enabled { comment: None };
}
}

Loading…
Cancel
Save