xref: /csrg-svn/usr.bin/mail/config.c (revision 16734)
114527Ssam #ifndef lint
2*16734Sralph static char sccsid[] = "@(#)config.c	1.9 (Berkeley) 07/19/84";
314527Ssam #endif
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[] = {
27*16734Sralph 	EMPTY,		EMPTYID,	AN,	/* Filled in dynamically */
284336Skurt 	0,		0,		0
294336Skurt };
304336Skurt 
314336Skurt /*
324336Skurt  * Table of ordered of preferred networks.  You probably won't need
334336Skurt  * to fuss with this unless you add a new network character (foolishly).
344336Skurt  */
354336Skurt struct netorder netorder[] = {
364336Skurt 	AN,	'@',
374336Skurt 	AN,	'%',
384336Skurt 	SN,	':',
394336Skurt 	BN,	'!',
404336Skurt 	-1,	0
414336Skurt };
424336Skurt 
434336Skurt /*
444336Skurt  * Table to convert from network separator code in address to network
454336Skurt  * bit map kind.  With this transformation, we can deal with more than
464336Skurt  * one character having the same meaning easily.
474336Skurt  */
487563Skurt struct ntypetab ntypetab[] = {
494336Skurt 	'%',	AN,
504336Skurt 	'@',	AN,
514336Skurt 	':',	SN,
524336Skurt 	'!',	BN,
534336Skurt 	'^',	BN,
544336Skurt 	0,	0
554336Skurt };
564336Skurt 
577563Skurt struct nkindtab nkindtab[] = {
584336Skurt 	AN,	IMPLICIT,
594336Skurt 	BN,	EXPLICIT,
604336Skurt 	SN,	IMPLICIT,
614336Skurt 	0,	0
624336Skurt };
63