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