21int headerbody(buffer *
b,
void (*dohf)(),
void (*hdone)(),
void (*dobl)())
29 switch (getsa(
b,&nextline,&
match)) {
33 if (flaglineok) dohf(&line);
40 if ((nextline.s[0] ==
' ') || (nextline.s[0] ==
'\t')) {
41 if (!stralloc_cat(&line,&nextline))
return -1;
47 if (nextline.len == 1) {
53 if (stralloc_starts(&nextline,
"From ")) {
55 if (!stralloc_cat(&line,&nextline))
return -1;
57 if (!stralloc_copy(&line,&nextline))
return -1;
69 switch (getsa(
b,&nextline,&
match)) {
72 case 1: dobl(&nextline);
int headerbody(buffer *b, void(*dohf)(), void(*hdone)(), void(*dobl)())