xref: /csrg-svn/usr.bin/mail/config.c (revision 8017)
14336Skurt #
24336Skurt 
3*8017Smckusick static	char	*SccsID[] = "@(#)config.c	1.6 09/02/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,
60*8017Smckusick 	EMPTY,		EMPTYID,	SN,	/* Filled in dynamically */
614336Skurt 	0,		0,		0
624336Skurt };
634336Skurt 
644336Skurt /*
654336Skurt  * Table of ordered of preferred networks.  You probably won't need
664336Skurt  * to fuss with this unless you add a new network character (foolishly).
674336Skurt  */
684336Skurt struct netorder netorder[] = {
694336Skurt 	AN,	'@',
704336Skurt 	AN,	'%',
714336Skurt 	SN,	':',
724336Skurt 	BN,	'!',
734336Skurt 	-1,	0
744336Skurt };
754336Skurt 
764336Skurt /*
774336Skurt  * Table to convert from network separator code in address to network
784336Skurt  * bit map kind.  With this transformation, we can deal with more than
794336Skurt  * one character having the same meaning easily.
804336Skurt  */
817563Skurt struct ntypetab ntypetab[] = {
824336Skurt 	'%',	AN,
834336Skurt 	'@',	AN,
844336Skurt 	':',	SN,
854336Skurt 	'!',	BN,
864336Skurt 	'^',	BN,
874336Skurt 	0,	0
884336Skurt };
894336Skurt 
907563Skurt struct nkindtab nkindtab[] = {
914336Skurt 	AN,	IMPLICIT,
924336Skurt 	BN,	EXPLICIT,
934336Skurt 	SN,	IMPLICIT,
944336Skurt 	0,	0
954336Skurt };
96