mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +03:00
@@ -618,7 +618,7 @@ async fn send_mdns(context: &Context, connection: &mut Smtp) -> Result<()> {
|
|||||||
|
|
||||||
let more_mdns = send_mdn(context, connection).await?;
|
let more_mdns = send_mdn(context, connection).await?;
|
||||||
if !more_mdns {
|
if !more_mdns {
|
||||||
// No more MDNs to send.
|
// No more MDNs to send or one of them failed.
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -752,7 +752,7 @@ async fn send_mdn_msg_id(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Tries to send a single MDN. Returns false if there are no MDNs to send.
|
/// Tries to send a single MDN. Returns true if more MDNs should be sent.
|
||||||
async fn send_mdn(context: &Context, smtp: &mut Smtp) -> Result<bool> {
|
async fn send_mdn(context: &Context, smtp: &mut Smtp) -> Result<bool> {
|
||||||
let mdns_enabled = context.get_config_bool(Config::MdnsEnabled).await?;
|
let mdns_enabled = context.get_config_bool(Config::MdnsEnabled).await?;
|
||||||
if !mdns_enabled {
|
if !mdns_enabled {
|
||||||
|
|||||||
Reference in New Issue
Block a user