From 382fc75b1e6c14de2ef27eb435c36975eb27be43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kl=C3=A4hn?= <39526136+Septias@users.noreply.github.com> Date: Fri, 12 Jan 2024 11:14:05 +0100 Subject: [PATCH] Add more docs (#5174) Add some docs to smtp functions --- src/smtp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/smtp.rs b/src/smtp.rs index 7ec94c467..d1e576919 100644 --- a/src/smtp.rs +++ b/src/smtp.rs @@ -618,7 +618,7 @@ async fn send_mdns(context: &Context, connection: &mut Smtp) -> Result<()> { let more_mdns = send_mdn(context, connection).await?; if !more_mdns { - // No more MDNs to send. + // No more MDNs to send or one of them failed. 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 { let mdns_enabled = context.get_config_bool(Config::MdnsEnabled).await?; if !mdns_enabled {