X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fscan.c;h=d228c717128f0add4af4031ec169c1059806be78;hb=33dc8211a72df0c27fa11220f3b27583cd1c7e49;hp=e5fb55a652440de6d1bc3e8fa30e101ada7567e9;hpb=c477dc5d1d03fa6d9a8ab3dd3508c63cbddc044e;p=mmh diff --git a/uip/scan.c b/uip/scan.c index e5fb55a..d228c71 100644 --- a/uip/scan.c +++ b/uip/scan.c @@ -10,7 +10,6 @@ #include #include #include -#include #include #include @@ -25,15 +24,11 @@ static struct swit switches[] = { { "format string", 5 }, #define WIDTHSW 4 { "width columns", 0 }, -#define REVSW 5 - { "reverse", 0 }, -#define NREVSW 6 - { "noreverse", 0 }, -#define FILESW 7 +#define FILESW 5 { "file file", 4 }, -#define VERSIONSW 8 +#define VERSIONSW 6 { "version", 0 }, -#define HELPSW 9 +#define HELPSW 7 { "help", 0 }, { NULL, 0 } }; @@ -49,7 +44,7 @@ int main(int argc, char **argv) { int clearflag = 0, ontty; - int width = 0, revflag = 0; + int width = 0; int i, state, msgnum; int seqnum[NUMATTRS], unseen, num_unseen_seq = 0; char *cp, *maildir, *file = NULL, *folder = NULL; @@ -67,7 +62,6 @@ main(int argc, char **argv) /* read user profile/context */ context_read(); - mts_init(invo_name); arguments = getarguments(invo_name, argc, argv, 1); argp = arguments; @@ -117,12 +111,6 @@ main(int argc, char **argv) argp[-2]); width = atoi(cp); continue; - case REVSW: - revflag++; - continue; - case NREVSW: - revflag = 0; - continue; case FILESW: if (!(cp = *argp++) || (cp[0] == '-' && cp[1])) @@ -228,9 +216,7 @@ main(int argc, char **argv) ontty = isatty(fileno(stdout)); - for (msgnum = revflag ? mp->hghsel : mp->lowsel; - (revflag ? msgnum >= mp->lowsel : msgnum <= mp->hghsel); - msgnum += (revflag ? -1 : 1)) { + for (msgnum = mp->lowsel; msgnum <= mp->hghsel; msgnum++) { if (is_selected(mp, msgnum)) { if ((in = fopen(cp = m_name(msgnum), "r")) == NULL) { admonish(cp, "unable to open message");