;;
scan )
options=(-clear -noclear -form -format -header -noheader
- -width -reverse -noreverse -file -version -help )
+ -width -file -version -help )
;;
show )
options=(-draft -showproc -showmimeproc -header -noheader
rmmproc normmproc help)" -- refile
compctl -K mhfseq -x 's[+][@]' -K mhcomp -S / -q - \
- 's[-]' -k "(clear noclear form format header noheader reverse noreverse \
+ 's[-]' -k "(clear noclear form format header noheader \
file help width)" - 'c[-1,-file]' -f - 'c[-1,-form]' -K mhfile -- scan
compctl -K mhfseq -x 's[+][@]' -K mhcomp -S / -q - \
.IR string ]
.RB [ \-width
.IR columns ]
-.RB [ \-reverse " | " \-noreverse ]
.RB [ \-file
.IR filename ]
.RB [ \-version ]
character set, if it is not US-ASCII. See the mh-profile(5) man
page for details about this environment variable.
.PP
-The switch
-.BR \-reverse ,
-makes
-.B scan
-list the messages in reverse
-order.
-.PP
The
.B \-file
.I filename
.BR packf .
This listing
includes every message in the file (you can't scan individual messages).
-The switch
-.B \-reverse
-is ignored with this option.
.PP
The switch
.B \-width
{ "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 }
};
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;
argp[-2]);
width = atoi(cp);
continue;
- case REVSW:
- revflag++;
- continue;
- case NREVSW:
- revflag = 0;
- continue;
case FILESW:
if (!(cp = *argp++) || (cp[0] == '-' && cp[1]))
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");