WIP move thread loading for notmuch into nm mod

This commit is contained in:
2024-07-21 09:31:37 -07:00
parent dd09bc3168
commit 65fcbd4b77
5 changed files with 688 additions and 659 deletions

View File

@@ -1,6 +1,10 @@
use std::{str::Utf8Error, string::FromUtf8Error};
use mailparse::MailParseError;
use thiserror::Error;
use crate::SanitizeError;
#[derive(Error, Debug)]
pub enum ServerError {
#[error("notmuch")]
@@ -15,4 +19,12 @@ pub enum ServerError {
PartNotFound,
#[error("sqlx error")]
SQLXError(#[from] sqlx::Error),
#[error("html sanitize error")]
SanitizeError(#[from] SanitizeError),
#[error("UTF8 error")]
Utf8Error(#[from] Utf8Error),
#[error("FromUTF8 error")]
FromUtf8Error(#[from] FromUtf8Error),
#[error("error")]
StringError(String),
}