X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fscan.c;h=ef13e39c29fada81f4e8513f311ab6c6b1cdf212;hp=1b58eb5b563c692c020e6c1df50a7b2491970637;hb=51d0e643f8daeb2db8de0a3d31d7d7f038b48380;hpb=e57b17343dcb3ff373ef4dd089fbe778f0c7c270 diff --git a/uip/scan.c b/uip/scan.c index 1b58eb5..ef13e39 100644 --- a/uip/scan.c +++ b/uip/scan.c @@ -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; @@ -128,9 +127,8 @@ main(int argc, char **argv) m_unknown(in); for (msgnum = 1; ; ++msgnum) { - state = scan(in, msgnum, -1, nfs, width, 0, 0, - NULL, 0L, 1); - if (state != SCNMSG && state != SCNENC) + state = scan(in, msgnum, -1, nfs, width, 0, 0, 1); + if (state != SCNMSG) break; } fclose(in); @@ -188,8 +186,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) { @@ -211,9 +207,8 @@ main(int argc, char **argv) switch (state = scan(in, msgnum, 0, nfs, width, msgnum == mp->curmsg, unseen, - folder, 0L, 1)) { + 1)) { case SCNMSG: - case SCNENC: case SCNERR: break; @@ -225,8 +220,6 @@ main(int argc, char **argv) break; } fclose(in); - if (ontty) - fflush(stdout); } }