"Subject: " isn't in the static array "header", and thus memcmp("Subject: ", header[i], 7) will never match. Signed-off-by: Lukas Sandström Signed-off-by: Junio C Hamano