Handle parsing of a@b.c <e@f.g>

The behavior of current VMIME implementation will result in address a@b.c
with an empty name. That is because the parsing is stopped whenever a
wihtespace and a at-character is seen. We should continue the parsing to
deduce the real address (e@f.g in the example).
This commit is contained in:
Bo Simonsen 2018-02-19 13:08:09 +01:00
parent 680057bacd
commit b73d765f51

View File

@ -234,8 +234,6 @@ void mailbox::parseImpl
++p; ++p;
} }
break;
} }
else else
{ {
@ -245,10 +243,6 @@ void mailbox::parseImpl
} }
else if (state == State_Address) else if (state == State_Address)
{ {
// Skip '<' character
if (*p == '<')
++p;
bool escaped = false; bool escaped = false;
int comment = 0; int comment = 0;