wmail: allow for multiple white-space characters between name and address.

This commit is contained in:
Jeremy Sowden 2019-06-07 09:52:09 +01:00 committed by Carlos R. Mafra
parent c04cc87128
commit b78df8ed42

View file

@ -951,9 +951,10 @@ static char *ParseFromField( char *buf )
state = STATE_QUOTED_FULLNAME; state = STATE_QUOTED_FULLNAME;
continue; continue;
case '<': case '<':
if( fullNameLen > 0 && while( fullNameLen > 0 &&
fullName[ fullNameLen - 1 ] == ' ' ) isspace( fullName[ fullNameLen - 1 ] ))
fullName[ --fullNameLen ] = '\0'; fullNameLen--;
fullName[ fullNameLen ] = '\0';
state = STATE_ADDRESS; state = STATE_ADDRESS;
continue; continue;
case '@': case '@':