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