m_unknown(in);
for (msgnum = 1; ; ++msgnum) {
- state = scan(in, msgnum, -1, fmtstr, width, 0, 0);
+ state = scan(in, msgnum, SCN_MBOX, fmtstr, width, 0, 0);
if (state != SCNMSG)
break;
}
}
}
- switch (state = scan(in, msgnum, 0, fmtstr, width,
- msgnum == mp->curmsg, unseen)) {
+ switch (state = scan(in, msgnum, SCN_FOLD, fmtstr,
+ width, msgnum==mp->curmsg, unseen)) {
case SCNMSG:
case SCNERR:
break;
char name[NAMESZ];
char returnpath[BUFSIZ];
char deliverydate[BUFSIZ];
- int incing = (outnum > 0);
- int scanfolder = (outnum == 0);
+ int incing = (outnum != SCN_MBOX && outnum != SCN_FOLD);
+ int scanfolder = (outnum == SCN_FOLD);
long fpos;
/* first-time only initialization */