Do not send BCC-Self copy if we are going to remove it immediately

This commit is contained in:
Alexander Krotov
2020-02-25 03:14:06 +03:00
parent 6d216af507
commit bc06b9e051

View File

@@ -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)