Always use rsplit to extract the domain part from email addresses

This commit is contained in:
mdecimus
2025-09-30 11:23:36 +02:00
parent d00d3dd013
commit 5fcf73f070
14 changed files with 87 additions and 96 deletions

View File

@@ -261,7 +261,7 @@ impl EmailAddress<'_> {
&self.address
};
if let Some((local, host)) = addr.split_once('@') {
if let Some((local, host)) = addr.rsplit_once('@') {
quoted_or_literal_string(buf, local);
buf.push(b' ');
quoted_or_literal_string(buf, host);