feat: restructure IMAP mail download state and ui

This commit is contained in:
rustmailer
2026-04-15 20:02:41 +08:00
parent 6d5953c73b
commit 82915e76ba
56 changed files with 2820 additions and 1878 deletions
+4
View File
@@ -50,6 +50,10 @@ pub struct AttachmentInfo {
}
impl AttachmentInfo {
pub fn is_inline(&self) -> bool {
self.inline && self.content_id.is_some()
}
pub fn get_extension(&self) -> Option<String> {
self.filename
.as_deref()