This commit is contained in:
rustmailer
2026-04-20 00:12:18 +08:00
parent 7dd722f9b8
commit b29c6ea9ff
55 changed files with 315 additions and 1515 deletions
+2 -2
View File
@@ -40,7 +40,7 @@ pub async fn retrieve_attachment_content(
let (_, eml) = reattach_eml_content(account_id, envelope_id).await?;
let message = MessageParser::default().parse(&eml).ok_or_else(|| {
raise_error!(
"Failed to parse parent EML".into(),
"Failed to parse EML".into(),
ErrorCode::InternalError
)
})?;
@@ -51,7 +51,7 @@ pub async fn retrieve_attachment_content(
.map(|att| att.contents())
.ok_or_else(|| {
raise_error!(
"Target nested EML not found".into(),
"Target attachment not found".into(),
ErrorCode::ResourceNotFound
)
})?;
+1
View File
@@ -122,6 +122,7 @@ pub struct AttachmentSearchFilter {
pub max_size: Option<u64>,
pub attachment_name: Option<String>,
pub content_hash: Option<String>,
pub tags: Option<HashSet<String>>,
pub attachment_extension: Option<String>,