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;
|
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 '@':
|
||||||
|
|
Loading…
Reference in a new issue