.B scan
as well.
.PP
-Regardless of the operation of the
-.B \-list
-switch, the
+The
.B \-sequence
.I name
switch may be given once for each sequence the user wishes to define.
defines a new message sequence for the current folder called
\*(lqfred\*(rq which contains exactly those messages that were selected.
.PP
-Note that whenever
-.B pick
-processes a
-.B \-sequence
-.I name
-switch, it
-sets
-.BR \-nolist .
-.PP
By default,
.B pick
will zero the sequence before adding it. This
{ NULL, 0 }
};
-static int listsw = 0;
+static int listsw = -1;
int
switch (smatch (cp, switches)) {
case AMBIGSW:
ambigsw (cp, switches);
+ listsw = 0; /* HACK */
done (1);
case UNKWNSW:
adios (NULL, "-%s unknown", cp);
done (1);
case VERSIONSW:
print_version(invo_name);
+ listsw = 0; /* HACK */
done (1);
case CCSW:
if (seqp >= NUMATTRS)
adios (NULL, "too many sequences (more than %d) specified", NUMATTRS);
seqs[seqp++] = cp;
- listsw = 0;
continue;
case PUBLSW:
publicsw = 1;
continue;
case LISTSW:
- listsw++;
+ listsw = 1;
continue;
case NLISTSW:
listsw = 0;
/*
* If we aren't saving the results to a sequence,
- * we need to list the results.
+ * we default to list the results.
*/
- if (seqp == 0)
- listsw++;
+ if (listsw == -1)
+ listsw = !seqp;
if (publicsw == 1 && is_readonly(mp))
adios (NULL, "folder %s is read-only, so -public not allowed", folder);