mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-17 13:17:55 +08:00
implement download attachments feature
This commit is contained in:
@@ -15,6 +15,7 @@ pub enum Error {
|
||||
ParseEmailError(mailparse::MailParseError),
|
||||
ReadEmailNotFoundError(String),
|
||||
ReadEmailEmptyPartError(String, String),
|
||||
ExtractAttachmentsEmptyError(String),
|
||||
}
|
||||
|
||||
impl fmt::Display for Error {
|
||||
@@ -30,6 +31,9 @@ impl fmt::Display for Error {
|
||||
Error::ReadEmailEmptyPartError(uid, mime) => {
|
||||
write!(f, "no {} content found for uid {}", mime, uid)
|
||||
}
|
||||
Error::ExtractAttachmentsEmptyError(uid) => {
|
||||
write!(f, "no attachment found for uid {}", uid)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user