diff --git a/src/parser.c b/src/parser.c index 5a9f146e..6cd46ca3 100644 --- a/src/parser.c +++ b/src/parser.c @@ -661,6 +661,8 @@ int parse_line(char *buf, struct _state *state, struct session_data *sdata, int if(state->message_state == MSG_FROM && state->is_1st_header == 1 && strlen(state->b_from) < SMALLBUFSIZE-len-1){ + strtolower(puf); + memcpy(&(state->b_from[strlen(state->b_from)]), puf, len); if(does_it_seem_like_an_email_address(puf) == 1 && state->b_from_domain[0] == '\0' && len > 5){