From bc06b9e0518116f94f51fe337deb69b0f22f4c63 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Tue, 25 Feb 2020 03:14:06 +0300 Subject: [PATCH] Do not send BCC-Self copy if we are going to remove it immediately --- src/job.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/job.rs b/src/job.rs index 521553f6b..3e3f36dcd 100644 --- a/src/job.rs +++ b/src/job.rs @@ -860,6 +860,7 @@ pub fn job_send_msg(context: &Context, msg_id: MsgId) -> Result<()> { .unwrap_or_default(); let lowercase_from = from.to_lowercase(); if context.get_config_bool(Config::BccSelf) + && context.get_config_int(Config::DeleteServerAfter) != 0 && !recipients .iter() .any(|x| x.to_lowercase() == lowercase_from)