{ NULL, 0 }
};
+char *version=VERSION;
/* flags for headers->flags */
#define HNOP 0x0000 /* just used to keep .set around */
finish_headers(out);
fprintf(out, "\n%s", f.value);
while ((state = m_getfld2(state, &f, in)) == BODY2) {
- if (f.valuelen >= NAMESZ) {
+ if (f.valuelen > NAMESZ+1 || (!f.crlf && f.valuelen > NAMESZ)) {
adios(EX_DATAERR, NULL, "Body contains a to long line");
}
fputs(f.value, out);
}
fclose(in);
- if (status != FILEEOF2) {
+ if (state != FILEEOF2) {
adios(EX_IOERR, "m_getfld2", "Error while reading body");
}
if (hdr->flags & HTRY) {
addr_end->m_next = recipients;
recipients = addr_start.m_next;
- recipientsc += i;
+ recipientsc += addrc;
}
}