wmail: allow for multiple white-space characters between name and address.
This commit is contained in:
parent
c04cc87128
commit
b78df8ed42
|
@ -951,9 +951,10 @@ static char *ParseFromField( char *buf )
|
|||
state = STATE_QUOTED_FULLNAME;
|
||||
continue;
|
||||
case '<':
|
||||
if( fullNameLen > 0 &&
|
||||
fullName[ fullNameLen - 1 ] == ' ' )
|
||||
fullName[ --fullNameLen ] = '\0';
|
||||
while( fullNameLen > 0 &&
|
||||
isspace( fullName[ fullNameLen - 1 ] ))
|
||||
fullNameLen--;
|
||||
fullName[ fullNameLen ] = '\0';
|
||||
state = STATE_ADDRESS;
|
||||
continue;
|
||||
case '@':
|
||||
|
|
Loading…
Reference in a new issue