mailinfo: factor out some repeated header handling
authorJeff King <peff@peff.net>
Tue, 11 Feb 2020 17:20:05 +0000 (12:20 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Feb 2020 18:21:43 +0000 (10:21 -0800)
commitf696a2b1c850c81130740945835beec72727debf
tree5fb85a3f0d7c4ef95ee15055a4a18f44717916d7
parentffbea1816dcbce12d4ffb304ddf8993ef611d4f1
mailinfo: factor out some repeated header handling

We do the same thing for each header: match it, copy it to a strbuf, and
decode it. Let's put that in a helper function to avoid repetition.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
mailinfo.c