From d8b78b80104919efd52b35f9b5e3cc0ae7317065 Mon Sep 17 00:00:00 2001 From: rustmailer Date: Sat, 23 May 2026 12:08:49 +0800 Subject: [PATCH] update --- crates/core/src/envelope/extractor.rs | 3 +-- crates/core/src/imap/executor.rs | 14 +++++++------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/crates/core/src/envelope/extractor.rs b/crates/core/src/envelope/extractor.rs index 63b7ba3..28a573b 100644 --- a/crates/core/src/envelope/extractor.rs +++ b/crates/core/src/envelope/extractor.rs @@ -569,8 +569,7 @@ pub async fn reattach_eml_content_self_healing( error = %e, "On-demand IMAP fetch for missing content blob failed; returning not-found" ); - // Surface the canonical "content not found" error to the caller. - reattach_eml_content(account_id, envelope_id) + Err(e) } } } diff --git a/crates/core/src/imap/executor.rs b/crates/core/src/imap/executor.rs index 97ee492..0d604f7 100644 --- a/crates/core/src/imap/executor.rs +++ b/crates/core/src/imap/executor.rs @@ -330,13 +330,13 @@ impl ImapExecutor { })? .to_vec(); - // Drain any remaining items so the stream is fully consumed before reuse. - while stream - .try_next() - .await - .map_err(|e| raise_error!(format!("{:#?}", e), ErrorCode::ImapCommandFailed))? - .is_some() - {} + // // Drain any remaining items so the stream is fully consumed before reuse. + // while stream + // .try_next() + // .await + // .map_err(|e| raise_error!(format!("{:#?}", e), ErrorCode::ImapCommandFailed))? + // .is_some() + // {} Ok(body) }