]>
diplodocus.org Git - nmh/blob - sbr/seq_setprev.c
1 /* seq_setprev.c -- set the Previous-Sequence
3 * This code is Copyright (c) 2002, by the authors of nmh. See the
4 * COPYRIGHT file in the root directory of the nmh distribution for
5 * complete copyright information.
9 #include "seq_setprev.h"
10 #include "context_find.h"
11 #include "brkstring.h"
16 * Add all the messages currently SELECTED to
17 * the Previous-Sequence. This way, when the next
18 * command is given, there is a convenient way to
19 * selected all the messages used in the previous
24 seq_setprev (struct msgs
*mp
)
29 * Get the list of sequences for Previous-Sequence
32 if (!(cp
= context_find(psequence
)))
35 if (!(ap
= brkstring(dp
, " ", "\n")) || !*ap
) {
40 /* Now add all SELECTED messages to each sequence */
42 seq_addsel (mp
, *ap
, -1, 1);