mirror of
https://github.com/leahneukirchen/mblaze
synced 2024-11-11 13:10:32 +00:00
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:
parent
b93b9303da
commit
0da278a9ad
10
mlist.c
10
mlist.c
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user