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
Notes for myself and anyone else looking at this:
gitgitgadget uses addressparser from nodemailer to do the email address generation from the cc: lines. It gets lost in the initial tokenization.
and an unquoted value would not have the '"' operators.
Not sure who has responsibility here. addressparser appears to expect valid (or mostly valid) email addresses. It does have some edge case handling but tries to work in spite of some bad input.
In this case, a second misquoted address may produce valid addresses. eg both Cc: Mr Quote" <mrquote@gmail.com>, "Mrs Quote <mrsquote@gmail.com> and Cc: Mr Quote" <mrquote@gmail.com>, Mrs Quote" <mrsquote@gmail.com> may produce valid output (ready to be reparsed). Just bringing this up to note an even number of '"' is not a reliable test. Having said that, an odd number check for '"' may be the simplest check. Reviewing if operator state checking can be added to addressparser.
Activity
webstech commentedon Oct 10, 2026
This is an edge case.
Notes for myself and anyone else looking at this:
gitgitgadget uses
addressparserfromnodemailerto do the email address generation from thecc:lines. It gets lost in the initial tokenization.The tokenizer result is:
whereas a properly quoted name is:
and an unquoted value would not have the '"' operators.
Not sure who has responsibility here. addressparser appears to expect valid (or mostly valid) email addresses. It does have some edge case handling but tries to work in spite of some bad input.
In this case, a second misquoted address may produce valid addresses. eg both
Cc: Mr Quote" <mrquote@gmail.com>, "Mrs Quote <mrsquote@gmail.com>andCc: Mr Quote" <mrquote@gmail.com>, Mrs Quote" <mrsquote@gmail.com>may produce valid output (ready to be reparsed). Just bringing this up to note an even number of '"' is not a reliable test. Having said that, an odd number check for '"' may be the simplest check. Reviewing if operator state checking can be added to addressparser.