}
for (compnum = 1, state = FLD2;; compnum++) {
switch (state = m_getfld2(state, &f, in)) {
+ case LENERR2:
+ state = FLD2;
+ /* FALL */
case FLD2:
if (mh_strcasecmp(f.name, datesw)==0) {
datecomp = mh_xstrdup(f.value);
case FILEEOF2:
break;
- case LENERR2:
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) {