mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2024-11-10 09:32:19 +08:00
Only perform email ingest duplicate check on the target mailbox (#632)
This commit is contained in:
parent
9cb87091e1
commit
b47d57e3c3
1 changed files with 7 additions and 1 deletions
|
@ -158,7 +158,13 @@ impl JMAP {
|
|||
.filter(
|
||||
params.account_id,
|
||||
Collection::Email,
|
||||
vec![Filter::eq(Property::MessageId, message_id)],
|
||||
vec![
|
||||
Filter::eq(Property::MessageId, message_id),
|
||||
Filter::is_in_bitmap(
|
||||
Property::MailboxIds,
|
||||
params.mailbox_ids.first().copied().unwrap_or(INBOX_ID),
|
||||
),
|
||||
],
|
||||
)
|
||||
.await
|
||||
.caused_by(trc::location!())?
|
||||
|
|
Loading…
Reference in a new issue