Added pointer for local host names
[unix-history] / usr / src / usr.bin / mail / config.c
CommitLineData
ebc9f528
KS
1#
2
477a74ec 3static char *SccsID[] = "@(#)config.c 1.6 %G%";
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[] = {
4d5d6c37
KS
27 "c70", '7', AN|SN,
28 "berkeley", '7', AN|SN,
29 "berk-c70", '7', AN|SN,
30 "ucb-c70", '7', AN|SN,
ebc9f528
KS
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,
4d5d6c37
KS
38 "ingres", 'i', SN,
39 "ing70", 'i', SN,
ebc9f528
KS
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,
c57de9d9 46 "ucbcad", 'p', SN|BN,
ebc9f528 47 "q", 'q', SN,
0a44ff1f 48 "kim", 'n', SN,
ebc9f528
KS
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,
ebc9f528
KS
58 "cory", 'y', SN,
59 "eecs40", 'z', SN,
477a74ec 60 EMPTY, EMPTYID, SN, /* Filled in dynamically */
ebc9f528
KS
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 */
68struct 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 */
cb9c9660 81struct ntypetab ntypetab[] = {
ebc9f528
KS
82 '%', AN,
83 '@', AN,
84 ':', SN,
85 '!', BN,
86 '^', BN,
87 0, 0
88};
89
cb9c9660 90struct nkindtab nkindtab[] = {
ebc9f528
KS
91 AN, IMPLICIT,
92 BN, EXPLICIT,
93 SN, IMPLICIT,
94 0, 0
95};