Place removed members into Bcc: instead of To:

This way if someone replies to the member deletion messsage from a
classic MUA, they will not reply to the removed member.
This commit is contained in:
link2xt
2021-12-04 18:51:25 +00:00
parent 7ab71bb468
commit 220758d244

View File

@@ -459,7 +459,19 @@ impl<'a> MimeFactory<'a> {
);
let mut to = Vec::new();
let email_to_remove = if self.msg.param.get_cmd() == SystemMessage::MemberRemovedFromGroup {
self.msg.param.get(Param::Arg)
} else {
None
};
for (name, addr) in self.recipients.iter() {
if let Some(email_to_remove) = email_to_remove {
if email_to_remove == addr {
continue;
}
}
if name.is_empty() {
to.push(Address::new_mailbox(addr.clone()));
} else {