Browse Source

melib/imap: ignore case for supported capability report in

MailBackendExtensionStatus
tags/alpha-0.6.2
Manos Pitsidianakis 2 months ago
parent
commit
7b324359c5
Signed by: epilys GPG Key ID: 73627C2F690DF710
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      melib/src/backends/imap.rs

+ 4
- 1
melib/src/backends/imap.rs View File

@ -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