mirror of
https://github.com/chatmail/core.git
synced 2026-04-29 03:16:29 +03:00
Do not send BCC-Self copy if we are going to remove it immediately
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user