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 <firstname.lastname@example.org>
but I need to have smth like:
From: Jin Doe, John <email@example.com>
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 <firstname.lastname@example.org>
So the question is, is there a way to encode this comma in some way, so that it doesn't confuse the parser?