This commit is contained in:
holger krekel
2019-12-09 09:55:19 +01:00
parent 0c04d5b2ab
commit 6edb525540
2 changed files with 8 additions and 2 deletions

View File

@@ -382,7 +382,7 @@ impl<'a, 'b> MimeFactory<'a, 'b> {
let mut unprotected_headers: Vec<Header> = Vec::new();
let from = Address::new_mailbox_with_name(
encode_words(&self.from_displayname),
self.from_displayname.to_string(),
self.from_addr.clone(),
);
@@ -394,7 +394,7 @@ impl<'a, 'b> MimeFactory<'a, 'b> {
to.push(Address::new_mailbox(addr.clone()));
} else {
to.push(Address::new_mailbox_with_name(
encode_words(name),
name.to_string(),
addr.clone(),
));
}