diff --git a/crates/email/src/message/ingest.rs b/crates/email/src/message/ingest.rs index e3ddbfe1..476f5849 100644 --- a/crates/email/src/message/ingest.rs +++ b/crates/email/src/message/ingest.rs @@ -204,17 +204,18 @@ impl EmailIngest for Server { .and_then(|s| s.address()) .and_then(sanitize_email) { - if !self - .store() - .filter( - account_id, - Collection::ContactCard, - vec![Filter::eq(IDX_EMAIL, sender.into_bytes())], - ) - .await - .caused_by(trc::location!())? - .results - .is_empty() + if sender != deliver_to + && !self + .store() + .filter( + account_id, + Collection::ContactCard, + vec![Filter::eq(IDX_EMAIL, sender.into_bytes())], + ) + .await + .caused_by(trc::location!())? + .results + .is_empty() { is_spam = false; if self