mirror of
https://github.com/chatmail/core.git
synced 2026-05-17 05:46:30 +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();
|
.unwrap_or_default();
|
||||||
let lowercase_from = from.to_lowercase();
|
let lowercase_from = from.to_lowercase();
|
||||||
if context.get_config_bool(Config::BccSelf)
|
if context.get_config_bool(Config::BccSelf)
|
||||||
|
&& context.get_config_int(Config::DeleteServerAfter) != 0
|
||||||
&& !recipients
|
&& !recipients
|
||||||
.iter()
|
.iter()
|
||||||
.any(|x| x.to_lowercase() == lowercase_from)
|
.any(|x| x.to_lowercase() == lowercase_from)
|
||||||
|
|||||||
Reference in New Issue
Block a user