feat(search): add advanced attachment filters for extension, category and mime type

This commit is contained in:
rustmailer
2026-03-19 20:23:20 +08:00
parent 884fdeba10
commit c19f3977ba
31 changed files with 466 additions and 40 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ impl AttachmentInfo {
std::path::Path::new(&self.filename)
.extension()
.and_then(|ext| ext.to_str())
.map(|ext| ext.to_lowercase())
.map(|ext| ext.to_ascii_lowercase())
.unwrap_or_default()
}