| 209 | } |
| 210 | |
| 211 | static void handle_header(struct strbuf **out, const struct strbuf *line) |
| 212 | { |
| 213 | if (!*out) { |
| 214 | *out = xmalloc(sizeof(struct strbuf)); |
| 215 | strbuf_init(*out, line->len); |
| 216 | } else |
| 217 | strbuf_reset(*out); |
| 218 | |
| 219 | strbuf_addbuf(*out, line); |
| 220 | } |
| 221 | |
| 222 | /* NOTE NOTE NOTE. We do not claim we do full MIME. We just attempt |
| 223 | * to have enough heuristics to grok MIME encoded patches often found |
no test coverage detected