check buffer size.
[unix-history] / usr / src / usr.bin / mail / config.c
CommitLineData
2ae9f53f 1#ifndef lint
bf8eb03a 2static char sccsid[] = "@(#)config.c 1.9 (Berkeley) %G%";
2ae9f53f 3#endif
ebc9f528
KS
4
5/*
6 * This file contains definitions of network data used by Mail
7 * when replying. See also: configdefs.h and optim.c
8 */
9
10/*
11 * The subterfuge with CONFIGFILE is to keep cc from seeing the
12 * external defintions in configdefs.h.
13 */
14#define CONFIGFILE
15#include "configdefs.h"
16
17/*
18 * Set of network separator characters.
19 */
20char *metanet = "!^:%@.";
21
22/*
23 * Host table of "known" hosts. See the comment in configdefs.h;
24 * not all accessible hosts need be here (fortunately).
25 */
26struct netmach netmach[] = {
bf8eb03a 27 EMPTY, EMPTYID, AN, /* Filled in dynamically */
ebc9f528
KS
28 0, 0, 0
29};
30
31/*
32 * Table of ordered of preferred networks. You probably won't need
33 * to fuss with this unless you add a new network character (foolishly).
34 */
35struct netorder netorder[] = {
36 AN, '@',
37 AN, '%',
38 SN, ':',
39 BN, '!',
40 -1, 0
41};
42
43/*
44 * Table to convert from network separator code in address to network
45 * bit map kind. With this transformation, we can deal with more than
46 * one character having the same meaning easily.
47 */
cb9c9660 48struct ntypetab ntypetab[] = {
ebc9f528
KS
49 '%', AN,
50 '@', AN,
51 ':', SN,
52 '!', BN,
53 '^', BN,
54 0, 0
55};
56
cb9c9660 57struct nkindtab nkindtab[] = {
ebc9f528
KS
58 AN, IMPLICIT,
59 BN, EXPLICIT,
60 SN, IMPLICIT,
61 0, 0
62};