Now spost stop and exit if some error happend. Befor this
spost stoped on an error in the body and submitted a half
mail.
finish_headers(out);
fprintf(out, "\n%s", f.value);
while ((state = m_getfld2(state, &f, in)) == BODY2) {
+ if (f.valuelen >= NAMESZ) {
+ adios(EX_DATAERR, NULL, "Body contains a to long line");
+ }
fputs(f.value, out);
}
break;
}
fclose(in);
+ if (status != FILEEOF2) {
+ adios(EX_IOERR, "m_getfld2", "Error while reading body");
+ }
+
if (debug) {
struct mailname *i = recipients;
/* stop here */