MCPcopy Create free account
hub / github.com/git/git / is_inbody_header

Function is_inbody_header

mailinfo.c:628–637  ·  view source on GitHub ↗

* Returns 1 if the given line or any line beginning with the given line is an * in-body header (that is, check_header will succeed when passed * mi->s_hdr_data). */

Source from the content-addressed store, hash-verified

626 * mi->s_hdr_data).
627 */
628static int is_inbody_header(const struct mailinfo *mi,
629 const struct strbuf *line)
630{
631 int i;
632 const char *val;
633 for (i = 0; i < ARRAY_SIZE(header); i++)
634 if (!mi->s_hdr_data[i] && skip_header(line, header[i], &val))
635 return 1;
636 return 0;
637}
638
639static void decode_transfer_encoding(struct mailinfo *mi, struct strbuf *line)
640{

Callers 1

check_inbody_headerFunction · 0.70

Calls 1

skip_headerFunction · 0.85

Tested by

no test coverage detected