xref: /csrg-svn/usr.bin/mail/config.c (revision 5840)
14336Skurt #
24336Skurt 
3*5840Skurt static	char	*SccsID[] = "@(#)config.c	1.3 02/14/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,
464336Skurt 	"q",		'q',		SN,
47*5840Skurt 	"kim",		'n',		SN,
484336Skurt 	"research",	'R',		BN,
494336Skurt 	"arpavax",	'r',		SN|BN,
504336Skurt 	"src",		's',		SN,
514336Skurt 	"mathstat",	't',		SN,
524336Skurt 	"csvax",	'v',		BN|SN,
534336Skurt 	"vax",		'v',		BN|SN,
544336Skurt 	"ucb",		'v',		BN|SN,
554336Skurt 	"ucbvax",	'v',		BN|SN,
564336Skurt 	"onyx",		'x',		SN,
574336Skurt 	"cory",		'y',		SN,
584336Skurt 	"eecs40",	'z',		SN,
594336Skurt 	0,		0,		0
604336Skurt };
614336Skurt 
624336Skurt /*
634336Skurt  * Table of ordered of preferred networks.  You probably won't need
644336Skurt  * to fuss with this unless you add a new network character (foolishly).
654336Skurt  */
664336Skurt struct netorder netorder[] = {
674336Skurt 	AN,	'@',
684336Skurt 	AN,	'%',
694336Skurt 	SN,	':',
704336Skurt 	BN,	'!',
714336Skurt 	-1,	0
724336Skurt };
734336Skurt 
744336Skurt /*
754336Skurt  * Table to convert from network separator code in address to network
764336Skurt  * bit map kind.  With this transformation, we can deal with more than
774336Skurt  * one character having the same meaning easily.
784336Skurt  */
794336Skurt struct nettypetab nettypetab[] = {
804336Skurt 	'%',	AN,
814336Skurt 	'@',	AN,
824336Skurt 	':',	SN,
834336Skurt 	'!',	BN,
844336Skurt 	'^',	BN,
854336Skurt 	0,	0
864336Skurt };
874336Skurt 
884336Skurt struct netkindtab netkindtab[] = {
894336Skurt 	AN,	IMPLICIT,
904336Skurt 	BN,	EXPLICIT,
914336Skurt 	SN,	IMPLICIT,
924336Skurt 	0,	0
934336Skurt };
94