Skip to content

Commit 2faf7fd

Browse files
committed
fix: BCC-to-self even if server deletion is set to "at once"
1 parent 6a8ea8a commit 2faf7fd

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/chat.rs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2751,10 +2751,18 @@ pub(crate) async fn create_send_msg_jobs(context: &Context, msg: &mut Message) -
27512751
let from = context.get_primary_self_addr().await?;
27522752
let lowercase_from = from.to_lowercase();
27532753

2754-
// Send BCC to self if it is enabled and we are not going to
2755-
// delete it immediately. `from` must be the last addr, see `receive_imf_inner()` why.
2754+
// Send BCC to self if it is enabled.
2755+
//
2756+
// Previous versions of Delta Chat did not send BCC self
2757+
// if DeleteServerAfter was set to immediately delete messages
2758+
// from the server. This is not the case anymore
2759+
// because BCC-self messages are also used to detect
2760+
// that message was sent if SMTP server is slow to respond
2761+
// and connection is frequently lost
2762+
// before receiving status line.
2763+
//
2764+
// `from` must be the last addr, see `receive_imf_inner()` why.
27562765
if context.get_config_bool(Config::BccSelf).await?
2757-
&& context.get_config_delete_server_after().await? != Some(0)
27582766
&& !recipients
27592767
.iter()
27602768
.any(|x| x.to_lowercase() == lowercase_from)

0 commit comments

Comments
 (0)