You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configure server, enable bouncing, use default templates and send email from your email address (needed to receive the bounce) to multiple non-existing email addresses from the same existing domain.
When .join() is called without a parameter, default of ',' is used, thus creating the escape pattern of /[&,<,>,",',\r,\n]/g.
Correct way should be to supply .join() with empty string like .join('') and therefore the desired pattern /[&<>"'\r\n]/g.
The text was updated successfully, but these errors were encountered:
Describe the bug
I was testing bouncing and found that when multiple recipients were defined from the same domain, mysterious &undefined; appeared in bounce message.
Expected behavior
Email addresses joined with
,
like:Error: Some recipients failed: <[email protected]>, <[email protected]>
Observed behavior
Comma replaced with "undefined":
Error: Some recipients failed: <[email protected]>&undefined; <[email protected]>
Steps To Reproduce
Configure server, enable bouncing, use default templates and send email from your email address (needed to receive the bounce) to multiple non-existing email addresses from the same existing domain.
System Info:
Additional context
I traced this behavior down to outbound/hmail.js where .join() on line 1065 is used incorrectly:
https://github.com/haraka/Haraka/blob/eb5466f216bcc74bea297ac21e11863c69452ea7/outbound/hmail.js#L1065C1-L1065C1
When .join() is called without a parameter, default of
','
is used, thus creating the escape pattern of/[&,<,>,",',\r,\n]/g
.Correct way should be to supply .join() with empty string like
.join('')
and therefore the desired pattern/[&<>"'\r\n]/g
.The text was updated successfully, but these errors were encountered: