]> diplodocus.org Git - nmh/blob - sbr/seq_setcur.c
pending-release-notes: add mhshow's "-prefer", and mh-format's %(kibi/kilo)
[nmh] / sbr / seq_setcur.c
1
2 /*
3 * seq_setcur.c -- set the current message ("cur" sequence) for a folder
4 *
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.
8 */
9
10 #include <h/mh.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 }