X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fscan.c;h=f3e5a4fa14d9a6732f3576ef31f4eec052d426bb;hb=9f9bfa91d88b3ca4cd9206c1f2b17c6d13ebcaba;hp=ea05cd2b930f31e445994952cd19b9f799536d38;hpb=c2360569e1d8d3678e294eb7c1354cb8bf7501c1;p=mmh diff --git a/uip/scan.c b/uip/scan.c index ea05cd2..f3e5a4f 100644 --- a/uip/scan.c +++ b/uip/scan.c @@ -204,7 +204,7 @@ main(int argc, char **argv) */ if (!msgs.size) - app_msgarg(&msgs, "all"); + app_msgarg(&msgs, seq_all); if (!folder) folder = getcurfol(); maildir = toabsdir(folder); @@ -262,15 +262,7 @@ main(int argc, char **argv) msgnum += (revflag ? -1 : 1)) { if (is_selected(mp, msgnum)) { if ((in = fopen(cp = m_name(msgnum), "r")) == NULL) { -#if 0 - if (errno != EACCES) -#endif - admonish(cp, "unable to open message"); -#if 0 - else - printf("%*d unreadable\n", - DMAXFOLDER, msgnum); -#endif + admonish(cp, "unable to open message"); continue; } @@ -304,11 +296,7 @@ main(int argc, char **argv) adios(NULL, "scan() botch(%d)", state); case SCNEOF: -#if 0 - printf("%*d empty\n", DMAXFOLDER, msgnum); -#else advise(NULL, "message %d: empty", msgnum); -#endif break; } hdrflag = 0;