mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 23:16:30 +03:00
fix places where string-cmp was used instead of addr_cmp() for email-address-comparison
This commit is contained in:
committed by
Floris Bruynooghe
parent
81d069209c
commit
4e6d0c9c69
@@ -707,7 +707,7 @@ impl<'a> MimeFactory<'a> {
|
||||
.get_config(Config::ConfiguredAddr)
|
||||
.unwrap_or_default();
|
||||
|
||||
if !email_to_remove.is_empty() && email_to_remove != self_addr {
|
||||
if !email_to_remove.is_empty() && !addr_cmp(email_to_remove, self_addr) {
|
||||
if !vec_contains_lowercase(&factory.recipients_addr, &email_to_remove) {
|
||||
factory.recipients_names.push("".to_string());
|
||||
factory.recipients_addr.push(email_to_remove.to_string());
|
||||
|
||||
Reference in New Issue
Block a user