Removed support for Encrypted: headers, which were removed in RFC 2822.
[mmh] / uip / scan.c
index 1b58eb5..1520553 100644 (file)
@@ -31,7 +31,6 @@ static struct swit switches[] = {
 int
 main(int argc, char **argv)
 {
-       int ontty;
        int width = 0;
        int i, state, msgnum;
        int seqnum[NUMATTRS], unseen, num_unseen_seq = 0;
@@ -130,7 +129,7 @@ main(int argc, char **argv)
                for (msgnum = 1; ; ++msgnum) {
                        state = scan(in, msgnum, -1, nfs, width, 0, 0,
                                        NULL, 0L, 1);
-                       if (state != SCNMSG && state != SCNENC)
+                       if (state != SCNMSG)
                                break;
                }
                fclose(in);
@@ -188,8 +187,6 @@ main(int argc, char **argv)
                }
        }
 
-       ontty = isatty(fileno(stdout));
-
        for (msgnum = mp->lowsel; msgnum <= mp->hghsel; msgnum++) {
                if (is_selected(mp, msgnum)) {
                        if ((in = fopen(cp = m_name(msgnum), "r")) == NULL) {
@@ -213,7 +210,6 @@ main(int argc, char **argv)
                                                msgnum == mp->curmsg, unseen,
                                                folder, 0L, 1)) {
                        case SCNMSG:
-                       case SCNENC:
                        case SCNERR:
                                break;
 
@@ -225,8 +221,6 @@ main(int argc, char **argv)
                                break;
                        }
                        fclose(in);
-                       if (ontty)
-                               fflush(stdout);
                }
        }