On Mon, Jul 20, 2020 at 09:43:12 -0400, Josef 'Jeff' Sipek wrote:
On Mon, Jul 20, 2020 at 20:24:13 +0900, TACHIBANA Masashi wrote: ... Thanks for the report. I reproduced it locally, but I'm not sure what is causing it yet.
Alright, it is actually a parsing bug. The problem seems to be when the code encounters a "name <address>" format where the name is a valid address. This accidentally makes the parser stop parsing - making any additional addresses ignored.
E.g.,
test@example.com <test@example.com>, Name <other@example.com>
The parser stops after the first address's name thinking it is just a bare address (without a name). That is, after the first loop iterating while parsing, the "cursor" is at the first space and not at the comma.
/- parsing should stop here
v
test@example.com <test@example.com>, Name <other@example.com>
^
`- parsing stops here
This is obviously wrong. I'll have to dig in more to figure out what it will take to fix this.
Thanks again,
Jeff.
-- FreeBSD 12.1