X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fscan.c;h=152055369a6b65009acbf7e9516fc1bd2534237f;hb=4b5944268ea0da7bb30598a27857304758ea9b44;hp=1b58eb5b563c692c020e6c1df50a7b2491970637;hpb=e57b17343dcb3ff373ef4dd089fbe778f0c7c270;p=mmh diff --git a/uip/scan.c b/uip/scan.c index 1b58eb5..1520553 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; @@ -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); } }