X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fsortm.c;h=ff69bc9e2b8a1ebe4fa1558c33f1c2c5faae933f;hp=56fa7cb59a43ea3701d9534b4ecfd4e85601a17c;hb=fc9279e818dfc96c63a5d75a89080cc68cfe1170;hpb=04a3dfc70394a517a79340a7d3ecd9c6a23d0bee diff --git a/uip/sortm.c b/uip/sortm.c index 56fa7cb..ff69bc9 100644 --- a/uip/sortm.c +++ b/uip/sortm.c @@ -331,6 +331,9 @@ get_fields(char *datesw, int msg, struct smsg *smsg) } 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); @@ -350,8 +353,11 @@ get_fields(char *datesw, int msg, struct smsg *smsg) 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) {