This commit is contained in:
rustmailer
2026-05-23 12:08:49 +08:00
parent 36f3f19cdc
commit d8b78b8010
2 changed files with 8 additions and 9 deletions
+1 -2
View File
@@ -569,8 +569,7 @@ pub async fn reattach_eml_content_self_healing(
error = %e, error = %e,
"On-demand IMAP fetch for missing content blob failed; returning not-found" "On-demand IMAP fetch for missing content blob failed; returning not-found"
); );
// Surface the canonical "content not found" error to the caller. Err(e)
reattach_eml_content(account_id, envelope_id)
} }
} }
} }
+7 -7
View File
@@ -330,13 +330,13 @@ impl ImapExecutor {
})? })?
.to_vec(); .to_vec();
// Drain any remaining items so the stream is fully consumed before reuse. // // Drain any remaining items so the stream is fully consumed before reuse.
while stream // while stream
.try_next() // .try_next()
.await // .await
.map_err(|e| raise_error!(format!("{:#?}", e), ErrorCode::ImapCommandFailed))? // .map_err(|e| raise_error!(format!("{:#?}", e), ErrorCode::ImapCommandFailed))?
.is_some() // .is_some()
{} // {}
Ok(body) Ok(body)
} }