Further fixes for searching

Signed-off-by: tyrolyean <tyrolyean@tyrolyean.net>
This commit is contained in:
tyrolyean 2020-04-29 02:10:02 +02:00
parent 238d7d187c
commit 9ee2dd8b75
No known key found for this signature in database
GPG key ID: EDD105663B707C62

View file

@ -92,7 +92,7 @@ char* get_value_from_key(size_t* val_len, size_t key_offset,
colon++;
char* val = NULL;
for(size_t i = colon; i < (mail->header_len-1); i++){
if(isalnum(mail->message[i])){
if(isalnum(mail->message[i]) && val == NULL){
val = &mail->message[i];
}