0de8b9709a735c038116461754af292c43b436cd
[mmh] / sbr / seq_setcur.c
1 /*
2 ** seq_setcur.c -- set the current message ("cur" sequence) for a folder
3 **
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.
7 */
8
9 #include <h/mh.h>
10
11
12 void
13 seq_setcur(struct msgs *mp, int msgnum)
14 {
15         /*
16         ** Just call seq_addmsg() to update the
17         ** "cur" sequence.
18         */
19         seq_addmsg(mp, current, msgnum, -1, 1);
20 }