:
# Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore)
# 
# Permission to use, copy, modify, and distribute this material 
# for any purpose and without fee is hereby granted, provided 
# that the above copyright notice and this permission notice 
# appear in all copies, and that the name of Bellcore not be 
# used in advertising or publicity pertaining to this 
# material without the specific, prior written permission 
# of an authorized representative of Bellcore.  BELLCORE 
# MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY 
# OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS", 
# WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.

# Conversion from C shell to Bourne shell
# by Bob Glickstein, Z-Code Software Corp.
# Conversion Copyright (c) 1992 Z-Code Software Corp. (Z-Code)
# 
# Permission to use, copy, modify, and distribute this material for
# any purpose and without fee is hereby granted, provided that the
# above copyright notice and this permission notice appear in all
# copies, and that the name of Z-Code not be used in advertising or
# publicity pertaining to this material without the specific, prior
# written permission of an authorized representative of Z-Code.
# Z-CODE MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY OF
# THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS", WITHOUT ANY
# EXPRESS OR IMPLIED WARRANTIES.

MYFONTDIR=/this/directory/COOPER/almost/certainly/COOPER/does/not/exist

if test ! -z "${MM_CHARSET:-}"
then
	if test "$MM_CHARSET" = iso-8859-8
	then
		mailto $*
		exit 0
	fi
fi

if test ! -d "$MYFONTDIR"
then
	echo The Hebrew font has not been installed properly on this machine.
	exit 1
fi

if test -z "${DISPLAY:-}"
then
	echo Hebrew mail may only be composed under X11 or on a Hebrew terminal.
	exit 1
fi

xset +fp "$MYFONTDIR"
echo Running xterm to compose mail in iso-8859-8, please wait...

MM_CHARSET=iso-8859-8; export MM_CHARSET
xterm -fn iso-8859-8 -e mailto $*
