UPDATED: improving email address splitting for common comma case

This commit is contained in:
TheAvgJojo 2022-08-05 15:13:21 -04:00
parent 9524963da6
commit 1e37e91eda
3 changed files with 17 additions and 1 deletions

View file

@ -58,7 +58,7 @@ function extract_first_email_addr(str: string): string
function split_mime_email_addresses(line: string): set[string]
{
local output = string_set();
local addrs = find_all(line, /(\"[^"]*\")?[^,]+/);
local addrs = find_all(line, /(\"[^"]*\")?[^,]+@[^,]+/);
for ( part in addrs )
{
add output[strip(part)];