Previously, "pick -list -seq seqname" meant "pick -nolist -seq seqname".
Now "pick -list -seq seqname" and "pick -seq seqname -list" do the same thing.
Thanks to Robert Elz.
-Regardless of the operation of the
-.B \-list
-switch, the
.B \-sequence
.I name
switch may be given once for each sequence the user wishes to define.
.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
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
By default,
.B pick
will zero the sequence before adding it. This
switch (smatch (cp, switches)) {
case AMBIGSW:
ambigsw (cp, switches);
switch (smatch (cp, switches)) {
case AMBIGSW:
ambigsw (cp, switches);
done (1);
case UNKWNSW:
adios (NULL, "-%s unknown", cp);
done (1);
case UNKWNSW:
adios (NULL, "-%s unknown", cp);
done (1);
case VERSIONSW:
print_version(invo_name);
done (1);
case VERSIONSW:
print_version(invo_name);
if (seqp >= NUMATTRS)
adios (NULL, "too many sequences (more than %d) specified", NUMATTRS);
seqs[seqp++] = cp;
if (seqp >= NUMATTRS)
adios (NULL, "too many sequences (more than %d) specified", NUMATTRS);
seqs[seqp++] = cp;
continue;
case PUBLSW:
publicsw = 1;
continue;
case PUBLSW:
publicsw = 1;
continue;
case NLISTSW:
listsw = 0;
continue;
case NLISTSW:
listsw = 0;
/*
* If we aren't saving the results to a sequence,
/*
* 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);
if (publicsw == 1 && is_readonly(mp))
adios (NULL, "folder %s is read-only, so -public not allowed", folder);