e-mail headers comma problem
Posted on 2004-09-13
I'm not sure this is the right area to place the question but since i didn't find more appropriate one, here it is..
In the header the From: field has the following format:
From: John Jin Doe <email@example.com>
but I need to have smth like:
From: Jin Doe, John <firstname.lastname@example.org>
However this does not work, because it obvously treats this expression as 2 comma-separated e-mails.
And it generates smth. like this:
From: Jin.Doe@mailserver.com, John <email@example.com>
So the question is, is there a way to encode this comma in some way, so that it doesn't confuse the parser?