Renamed -version switch to -Version to remove the conflict with -verbose.
[mmh] / uip / scan.c
index 0c17268..085cc7f 100644 (file)
@@ -21,7 +21,7 @@ static struct swit switches[] = {
 #define FILESW  2
        { "file file", 4 },
 #define VERSIONSW 3
-       { "version", 0 },
+       { "Version", 0 },
 #define HELPSW  4
        { "help", 0 },
        { NULL, 0 }
@@ -125,9 +125,9 @@ main(int argc, char **argv)
                        adios(file, "unable to open");
                }
 
-               m_unknown(in);
+               thisisanmbox(in);
                for (msgnum = 1; ; ++msgnum) {
-                       state = scan(in, msgnum, -1, fmtstr, width, 0, 0);
+                       state = scan(in, msgnum, SCN_MBOX, fmtstr, width, 0, 0);
                        if (state != SCNMSG)
                                break;
                }
@@ -205,8 +205,8 @@ main(int argc, char **argv)
                                }
                        }
 
-                       switch (state = scan(in, msgnum, 0, fmtstr, width,
-                                       msgnum == mp->curmsg, unseen)) {
+                       switch (state = scan(in, msgnum, SCN_FOLD, fmtstr,
+                                       width, msgnum==mp->curmsg, unseen)) {
                        case SCNMSG:
                        case SCNERR:
                                break;