####################################
#  Config file for emil version 2  #
####################################
#
# A line beginning with a '#' or empty is a comment. 
# Definitions are of three kinds: match-strings, groups and members
#
# Match-strings should come first and not normally be changed.
#
# A group definition must come before it is used in a member def.
#
# Some Generic types used here are predefined in the code, these
# are: TEXT, MULTIPART, JEPG, GIF and ULAW. Otherwise it is
# allowed to add new generic types as suited. 
#
#       Context		MatchString     		Generic
#
# MIME Types
Match	MIME		"Text/plain"			TEXT		;
Match	MIME		"Image/GIF"			GIF		;
Match	MIME		"Image/JPEG"			JPEG		;
Match	MIME		"Audio/Basic"			ULAW		;
Match	MIME		"Application/Postscipt"		POSTSCRIPT	;
Match	MIME		"Application/MSWord"		MSWORD		;
Match	MIME		"Application/X-MSExcel"		EXCEL		;
Match	MIME		"Application/Applefile"		APPLESINGLE	;
Match	MIME		"Application/Octet-Stream"	APPLICATION	;
Match	MIME		"Application/PGP"		PGP		;
Match	MIME		"Application/mac-binhex4.0"	BINHEX		;
Match	MIME		"Application/MacBinary"		MACBINARY	;
Match	MIME		"Message/rfc822"		MESSAGE		;
Match	MIME		"Message/Partial"		PARTIAL		;
Match	MIME		"Message/External-Body"		EXTERNAL	;
Match	MIME		"Multipart/Mixed"		MULTIPART	;
Match	MIME		"Multipart/Digest"		MULTIPART	;
Match	MIME		"Multipart/Aternative"		MULTIPART	;
Match	MIME		"Multipart/Parallel"		MULTIPART	;
Match	MIME		"Multipart/AppleDouble"		MULTIPART	;
Match	MIME		"Multipart/Header-Set"		MULTIPART	;
Match	MIME		"Video/MPEG"			MPEG		;
Match	MIME		"Audio/Basic"			ULAW		;
Match	MIME		"Application/Octet-Stream"	DEFAULT		;
#
# UUencode file name extensions
#
Match	UUENCODE	".doc"				MSWORD		;
Match	UUENCODE	".xls"				EXCEL		;
Match	UUENCODE	".txt"				TEXT		;
Match	UUENCODE	".gif"				GIF		;
Match	UUENCODE	".jpg"				JPEG		;
Match	UUENCODE	".mpg"				MPEG		;
Match	UUENCODE	".pgp"				PGP		;
Match	UUENCODE	".au"				ULAW		;
Match	UUENCODE	".eps"				POSTSCRIPT	;
#
# Applefile (BinHex) Type & Creator
#
Match	APPLEFILE	"WDBNMSWD"			MSWORD		;
Match	APPLEFILE	"XLS XCEL"			EXCEL		;
Match	APPLEFILE	"GIFfJVWR"			GIF		;
Match	APPLEFILE	"JPEGJVWR"			JPEG		;
Match	APPLEFILE	"ULAWUPLY"			ULAW		;
Match	APPLEFILE	"TEXTmlpr"			POSTSCRIPT	;
Match	APPLEFILE	"MBINMB2P"			MACBINARY	;
Match	APPLEFILE	"TEXTMPGP"			PGP		;
Match	APPLEFILE	"asinCSOm"			APPLESINGLE	;
Match	APPLEFILE	"TEXTttxt"			TEXT		;

#
# Define translation groups: names may be given freely (A-Za-z_-.) followed by a colon (:).
# With each group is associated a set of parameters, name=value, separated by commas(,)
#
group mime_user		: charset=iso-8859-1, format=mime, bin=base64, 
			  appletype=double, henc = qp, textenc=qp ;
group mime_single	: charset=iso-8859-1, format=mime, bin=base64, 
			  appletype=single, henc = qp, textenc=qp ;
group mime8_user	: charset=iso-8859-1, format=mime, bin=base64, 
			  appletype=double, henc = qp, textenc=8bit ;
group sun_user		: charset=iso-8859-1,  format=mailtool, bin=uuencode,
			  appletype=double, textenc=8bit, henc=8bit;
group plain_user	: charset=iso-8859-1, format=rfc822, bin=uuencode,
			  appletype=single, textenc=8bit, henc=8bit ;
group mac_user		: charset=MACINTOSH, format=rfc822, bin=binhex,
			  appletype=binhex, textenc=8bit, henc=8bit ;
group old_sunet		: charset=SE, format=rfc822, bin=uuencode,
						textenc=7bit, henc=7bit ;
group transparent	: format=transparent ;

group rfc822_user	: charset=iso-8859-1, format=rfc822, bin=uuencode,
						textenc=8bit, henc=8bit ;
#
# Define which users are connected to the groups above. One definition / line.
# Comparision is made analogous with the '*' file name expansion in shell.
# 
# Fields:
#	 members group_name : <recipient sender recipient_host>,... ;
#
member mime_user	:	mime * * ,
				user1@host1 * host1 ,
				user2@host2 user1@host1 * ,
				* *@host3 * ;
member mime8_user	:	mime8 * * ;
member mime_single	:	single * * ;
member plain_user 	:	plain * * ;
member mac_user		:	mac * * ;
# Transparent delivery (no conversion) within local domain.
member transparent	:	transparent * * ,
				*@*local *@*local * ;

member sun_user		:	*@host3 * * ,
				sun * * ;
member old_sunet	: 	* * * ;


mailer	localaix	: /bin/bellmail, mail, -F, $s, $r ;
mailer	localbsd44	: /usr/libexec/mail.local, -f, $s, $r ;
mailer  sendmail	: /usr/lib/sendmail, sendmail, -f, $s, $r ;


