summaryrefslogtreecommitdiffstats
path: root/melib/src/email/attachments.rs
diff options
context:
space:
mode:
Diffstat (limited to 'melib/src/email/attachments.rs')
-rw-r--r--melib/src/email/attachments.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/melib/src/email/attachments.rs b/melib/src/email/attachments.rs
index e7d95906..f286ccbe 100644
--- a/melib/src/email/attachments.rs
+++ b/melib/src/email/attachments.rs
@@ -390,7 +390,7 @@ impl fmt::Display for Attachment {
let name = String::from_utf8_lossy(
parameters
.iter()
- .find(|(name, _)| name == b"name")
+ .find(|(name, _)| name.eq_ignore_ascii_case(b"name"))
.map(|(_, value)| value)
.unwrap(),
);