]> diplodocus.org Git - nmh/blob - sbr/seq_setcur.c
sendsbr.c: Move interface to own file.
[nmh] / sbr / seq_setcur.c
1 /* seq_setcur.c -- set the current message ("cur" sequence) for a folder
2 *
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.
6 */
7
8 #include "h/mh.h"
9 #include "seq_setcur.h"
10 #include "seq_add.h"
11
12
13 void
14 seq_setcur (struct msgs *mp, int msgnum)
15 {
16 /*
17 * Just call seq_addmsg() to update the
18 * "cur" sequence.
19 */
20 seq_addmsg (mp, current, msgnum, -1, 1);
21 }