]> diplodocus.org Git - nmh/blob - sbr/m_gmprot.c
sendsbr.c: Move interface to own file.
[nmh] / sbr / m_gmprot.c
1 /* m_gmprot.c -- return the msg-protect value
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 "m_gmprot.h"
10 #include "context_find.h"
11 #include "atooi.h"
12
13
14 int
15 m_gmprot (void)
16 {
17 char *cp;
18
19 return atooi ((cp = context_find ("msg-protect")) && *cp ? cp : msgprot);
20 }