mirror of
https://github.com/rustmailer/bichon.git
synced 2026-08-03 07:48:34 +02:00
feat: restructure IMAP mail download state and ui
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user