]> git.marmaro.de Git - mmh/blobdiff - uip/sortm.c
No need to define the month and day names a second time
[mmh] / uip / sortm.c
index 061ae5a435876941f39939255a085e9ef46ff16a..ff69bc9e2b8a1ebe4fa1558c33f1c2c5faae933f 100644 (file)
@@ -332,7 +332,6 @@ get_fields(char *datesw, int msg, struct smsg *smsg)
        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:
@@ -355,6 +354,10 @@ get_fields(char *datesw, int msg, struct smsg *smsg)
                        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) {