fix places where string-cmp was used instead of addr_cmp() for email-address-comparison

This commit is contained in:
B. Petersen
2019-11-28 17:29:00 +01:00
committed by Floris Bruynooghe
parent 81d069209c
commit 4e6d0c9c69
3 changed files with 4 additions and 4 deletions

View File

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