mirror of
https://github.com/chatmail/core.git
synced 2026-10-02 03:00:40 +03:00
fix: send MDNs to all authentic relays of a contact, not just whatever get_addr() returns.
This commit is contained in:
+5
-4
@@ -596,13 +596,14 @@ async fn send_mdn_rfc724_mid(
|
||||
)
|
||||
.await?;
|
||||
let encrypted = mimefactory.will_be_encrypted();
|
||||
let mut recipients = if contact_id == ContactId::SELF {
|
||||
Vec::new()
|
||||
} else {
|
||||
mimefactory.recipients()
|
||||
};
|
||||
let rendered_msg = Box::pin(mimefactory.render(context)).await?;
|
||||
let body = rendered_msg.message;
|
||||
|
||||
let mut recipients = Vec::new();
|
||||
if contact_id != ContactId::SELF {
|
||||
recipients.push(contact.get_addr().to_string());
|
||||
}
|
||||
if context.get_config_bool(Config::BccSelf).await? {
|
||||
add_self_recipients(context, &mut recipients, encrypted).await?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user