xref: /original-bsd/usr.bin/mail/config.c (revision f0fd5f8a)
1 #
2 
3 static	char	*SccsID[] = "@(#)config.c	1.6 09/02/82";
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  */
20 char	*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  */
26 struct netmach netmach[] = {
27 	"c70",		'7',		AN|SN,
28 	"berkeley",	'7',		AN|SN,
29 	"berk-c70",	'7',		AN|SN,
30 	"ucb-c70",	'7',		AN|SN,
31 	"a",		'a',		SN,
32 	"b",		'b',		SN,
33 	"c",		'c',		SN,
34 	"d",		'd',		SN,
35 	"e",		'e',		SN,
36 	"f",		'f',		SN,
37 	"g",		'g',		SN,
38 	"ingres",	'i',		SN,
39 	"ing70",	'i',		SN,
40 	"ingvax",	'j',		SN|BN,
41 	"virus",	'k',		SN,
42 	"vlsi",		'l',		SN,
43 	"image",	'm',		SN,
44 	"esvax",	'o',		SN,
45 	"sesm",		'o',		SN,
46 	"ucbcad",	'p',		SN|BN,
47 	"q",		'q',		SN,
48 	"kim",		'n',		SN,
49 	"research",	'R',		BN,
50 	"arpavax",	'r',		SN|BN,
51 	"src",		's',		SN,
52 	"mathstat",	't',		SN,
53 	"csvax",	'v',		BN|SN,
54 	"vax",		'v',		BN|SN,
55 	"ucb",		'v',		BN|SN,
56 	"ucbvax",	'v',		BN|SN,
57 	"onyx",		'x',		SN,
58 	"cory",		'y',		SN,
59 	"eecs40",	'z',		SN,
60 	EMPTY,		EMPTYID,	SN,	/* Filled in dynamically */
61 	0,		0,		0
62 };
63 
64 /*
65  * Table of ordered of preferred networks.  You probably won't need
66  * to fuss with this unless you add a new network character (foolishly).
67  */
68 struct netorder netorder[] = {
69 	AN,	'@',
70 	AN,	'%',
71 	SN,	':',
72 	BN,	'!',
73 	-1,	0
74 };
75 
76 /*
77  * Table to convert from network separator code in address to network
78  * bit map kind.  With this transformation, we can deal with more than
79  * one character having the same meaning easily.
80  */
81 struct ntypetab ntypetab[] = {
82 	'%',	AN,
83 	'@',	AN,
84 	':',	SN,
85 	'!',	BN,
86 	'^',	BN,
87 	0,	0
88 };
89 
90 struct nkindtab nkindtab[] = {
91 	AN,	IMPLICIT,
92 	BN,	EXPLICIT,
93 	SN,	IMPLICIT,
94 	0,	0
95 };
96