From 2faf7fdb7863721c8aa19b47eaea593198d32e8f Mon Sep 17 00:00:00 2001 From: link2xt Date: Wed, 17 Jan 2024 06:29:10 +0000 Subject: [PATCH] fix: BCC-to-self even if server deletion is set to "at once" --- src/chat.rs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/chat.rs b/src/chat.rs index fd921dd92..7985149fb 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -2751,10 +2751,18 @@ pub(crate) async fn create_send_msg_jobs(context: &Context, msg: &mut Message) - let from = context.get_primary_self_addr().await?; let lowercase_from = from.to_lowercase(); - // Send BCC to self if it is enabled and we are not going to - // delete it immediately. `from` must be the last addr, see `receive_imf_inner()` why. + // Send BCC to self if it is enabled. + // + // Previous versions of Delta Chat did not send BCC self + // if DeleteServerAfter was set to immediately delete messages + // from the server. This is not the case anymore + // because BCC-self messages are also used to detect + // that message was sent if SMTP server is slow to respond + // and connection is frequently lost + // before receiving status line. + // + // `from` must be the last addr, see `receive_imf_inner()` why. if context.get_config_bool(Config::BccSelf).await? - && context.get_config_delete_server_after().await? != Some(0) && !recipients .iter() .any(|x| x.to_lowercase() == lowercase_from)