server: add ability to view inline image attachments

This commit is contained in:
2024-03-24 18:11:15 -07:00
parent c30cfec09d
commit c74cd66826
6 changed files with 410 additions and 120 deletions

View File

@@ -1,3 +1,4 @@
use mailparse::MailParseError;
use thiserror::Error;
#[derive(Error, Debug)]
@@ -6,4 +7,10 @@ pub enum ServerError {
NotmuchError(#[from] notmuch::NotmuchError),
#[error("flatten")]
FlattenError,
#[error("mail parse error")]
MailParseError(#[from] MailParseError),
#[error("IO error")]
IoError(#[from] std::io::Error),
#[error("attachement not found")]
PartNotFound,
}