2 ** seq_setprev.c -- set the Previous-Sequence
4 ** This code is Copyright (c) 2002, by the authors of nmh. See the
5 ** COPYRIGHT file in the root directory of the nmh distribution for
6 ** complete copyright information.
12 ** Add all the messages currently SELECTED to
13 ** the Previous-Sequence. This way, when the next
14 ** command is given, there is a convenient way to
15 ** selected all the messages used in the previous
20 seq_setprev(struct msgs *mp)
25 ** Get the list of sequences for Previous-Sequence
28 if ((cp = context_find(psequence))) {
30 if (!(ap = brkstring(dp, " ", "\n")) || !*ap) {
38 /* Now add all SELECTED messages to each sequence */
40 seq_addsel(mp, *ap, -1, 1);