mlist: don't use blaze822_loop for the case when arguments are given

blaze822_loop replaces directory arguments with all cur/ mails, which is
not what we want in mlist.
This commit is contained in:
Leah Neukirchen 2017-01-21 17:13:47 +01:00
parent b93b9303da
commit 0da278a9ad

10
mlist.c
View File

@ -255,10 +255,14 @@ main(int argc, char *argv[])
flagsum++;
}
if (optind == argc && isatty(0))
if (optind == argc) {
if (isatty(0))
goto usage;
else
blaze822_loop(argc-optind, argv+optind, listarg);
blaze822_loop(0, 0, listarg);
} else {
for (i = optind; i < argc; i++)
listarg(argv[i]);
}
if (iflag && imatched)
printf("%6ld unseen %3ld flagged %6ld msg\n",