for (compnum = 1, state = FLD2;;) {
switch (state = m_getfld2(state, &f, in)) {
case LENERR2:
- advise(NULL, "To long field");
state = FLD2;
/* FALL */
case FLD2:
fseek(fp, start, SEEK_SET);
for (state = FLD2, bp = NULL;;) {
switch (state = m_getfld2(state, &f, fp)) {
+ case LENERR2:
+ state = FLD2;
+ /* FALL */
+
case FLD2:
if (bp) {
mh_free0(&bp);
}
continue;
- case LENERR2:
case FMTERR2:
advise(NULL, "format error in message %d", msgnum);
state = FLD2;
for (state = FLD2;;) {
switch (state = m_getfld2(state, &f, in)) {
case LENERR2:
- advise(NULL, "Header to long");
state = FLD2;
/* FALL */
+
case FLD2:
/*
** Check if the value of field contains
for (compnum = 1, state = FLD2; ; ) {
state = m_getfld2(state, &f, inb);
switch (state) {
+ case LENERR2:
+ state = FLD2;
+ /* FALL */
case FLD2:
compnum++;
if (incing) {
}
goto finished;
- case LENERR2:
- advise(NULL, "line \"%s\" too long", trim(f.value));
- goto handleerror;
-
case FMTERR2:
if (strncmp("From ", f.value, 5)==0) {
state = FILEEOF2;
goto finished;
}
- /* FALL */
+ compnum++;
+ advise(NULL, "formate error in component #%d", compnum);
+ continue;
case IOERR2:
handleerror:;
for (i = 0, state = FLD2;;) {
switch (state = m_getfld2(state, &f, in)) {
case LENERR2:
- advise(NULL, "format error in message");
state = FLD2;
/* FALL */
for (compnum = 1, state = FLD2;; compnum++) {
switch (state = m_getfld2(state, &f, in)) {
case LENERR2:
- admonish(NULL, "To long header field in message %d (header %s, #%d)", msg, f.name, compnum);
state = FLD2;
/* FALL */
case FLD2:
break;
case FMTERR2:
+ admonish(NULL, "format error in message %d (header #%d)", msg, compnum);
+ state = FLD2;
+ continue;
+
case IOERR2:
admonish(NULL, "format error in message %d (header #%d)", msg, compnum);
if (datecomp) {
for (compnum=1, state=FLD2;; compnum++) {
switch (state = m_getfld2(state, &f, in)) {
case LENERR2:
- advise(NULL, "field %d contains a to long line", f.name);
state = FLD2;
/* FALL */
case FLD2:
break;
case FMTERR2:
+ advise(NULL, "message format error in component #%d", compnum);
+ continue;
+
case IOERR2:
adios(EX_DATAERR, NULL, "message format error in component #%d",
compnum);