wmail: skip leading white-space in From: headers.
This commit is contained in:
parent
9158bb68f3
commit
a3ef21b122
|
@ -34,6 +34,7 @@
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// includes
|
// includes
|
||||||
|
|
||||||
|
#include <ctype.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
@ -936,7 +937,8 @@ char *ParseFromField( char *buf )
|
||||||
continue;
|
continue;
|
||||||
} // else do the default action
|
} // else do the default action
|
||||||
default:
|
default:
|
||||||
fullName[ strlen( fullName ) ] = *c;
|
if( fullName[0] != '\0' || !isspace ( *c ))
|
||||||
|
fullName[ strlen( fullName ) ] = *c;
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue