xref: /csrg-svn/usr.bin/mail/config.c (revision 7563)
14336Skurt #
24336Skurt 
3*7563Skurt static	char	*SccsID[] = "@(#)config.c	1.5 07/28/82";
44336Skurt 
54336Skurt /*
64336Skurt  * This file contains definitions of network data used by Mail
74336Skurt  * when replying.  See also:  configdefs.h and optim.c
84336Skurt  */
94336Skurt 
104336Skurt /*
114336Skurt  * The subterfuge with CONFIGFILE is to keep cc from seeing the
124336Skurt  * external defintions in configdefs.h.
134336Skurt  */
144336Skurt #define	CONFIGFILE
154336Skurt #include "configdefs.h"
164336Skurt 
174336Skurt /*
184336Skurt  * Set of network separator characters.
194336Skurt  */
204336Skurt char	*metanet = "!^:%@.";
214336Skurt 
224336Skurt /*
234336Skurt  * Host table of "known" hosts.  See the comment in configdefs.h;
244336Skurt  * not all accessible hosts need be here (fortunately).
254336Skurt  */
264336Skurt struct netmach netmach[] = {
275204Skurt 	"c70",		'7',		AN|SN,
285204Skurt 	"berkeley",	'7',		AN|SN,
295204Skurt 	"berk-c70",	'7',		AN|SN,
305204Skurt 	"ucb-c70",	'7',		AN|SN,
314336Skurt 	"a",		'a',		SN,
324336Skurt 	"b",		'b',		SN,
334336Skurt 	"c",		'c',		SN,
344336Skurt 	"d",		'd',		SN,
354336Skurt 	"e",		'e',		SN,
364336Skurt 	"f",		'f',		SN,
374336Skurt 	"g",		'g',		SN,
385204Skurt 	"ingres",	'i',		SN,
395204Skurt 	"ing70",	'i',		SN,
404336Skurt 	"ingvax",	'j',		SN|BN,
414336Skurt 	"virus",	'k',		SN,
424336Skurt 	"vlsi",		'l',		SN,
434336Skurt 	"image",	'm',		SN,
444336Skurt 	"esvax",	'o',		SN,
454336Skurt 	"sesm",		'o',		SN,
466301Skurt 	"ucbcad",	'p',		SN|BN,
474336Skurt 	"q",		'q',		SN,
485840Skurt 	"kim",		'n',		SN,
494336Skurt 	"research",	'R',		BN,
504336Skurt 	"arpavax",	'r',		SN|BN,
514336Skurt 	"src",		's',		SN,
524336Skurt 	"mathstat",	't',		SN,
534336Skurt 	"csvax",	'v',		BN|SN,
544336Skurt 	"vax",		'v',		BN|SN,
554336Skurt 	"ucb",		'v',		BN|SN,
564336Skurt 	"ucbvax",	'v',		BN|SN,
574336Skurt 	"onyx",		'x',		SN,
584336Skurt 	"cory",		'y',		SN,
594336Skurt 	"eecs40",	'z',		SN,
604336Skurt 	0,		0,		0
614336Skurt };
624336Skurt 
634336Skurt /*
644336Skurt  * Table of ordered of preferred networks.  You probably won't need
654336Skurt  * to fuss with this unless you add a new network character (foolishly).
664336Skurt  */
674336Skurt struct netorder netorder[] = {
684336Skurt 	AN,	'@',
694336Skurt 	AN,	'%',
704336Skurt 	SN,	':',
714336Skurt 	BN,	'!',
724336Skurt 	-1,	0
734336Skurt };
744336Skurt 
754336Skurt /*
764336Skurt  * Table to convert from network separator code in address to network
774336Skurt  * bit map kind.  With this transformation, we can deal with more than
784336Skurt  * one character having the same meaning easily.
794336Skurt  */
80*7563Skurt struct ntypetab ntypetab[] = {
814336Skurt 	'%',	AN,
824336Skurt 	'@',	AN,
834336Skurt 	':',	SN,
844336Skurt 	'!',	BN,
854336Skurt 	'^',	BN,
864336Skurt 	0,	0
874336Skurt };
884336Skurt 
89*7563Skurt struct nkindtab nkindtab[] = {
904336Skurt 	AN,	IMPLICIT,
914336Skurt 	BN,	EXPLICIT,
924336Skurt 	SN,	IMPLICIT,
934336Skurt 	0,	0
944336Skurt };
95