ACC SHELL
#!/bin/sh
# 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 Software 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 SOFTWARE
# 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.
# Brought into line with metamail 2.7 beta release Csh version
# Dave Shield February 1994
MYFONTDIR=/usr/X11R6/lib/X11/fonts/misc
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
#
# Do we have a font server?
#
FSGREP=`xset q | grep "tcp/localhost:7100"`
if test ! -z "${FSGREP:-}"
then
FPGREP=`xset q | grep $MYFONTDIR`
if test -z "${FPGREP:-}"
then
echo Adding $MYFONTDIR to your font path.
xset +fp "$MYFONTDIR"
else
echo Your font path appears to be correctly set.
fi
else
echo Your font path appears to be correctly set.
fi
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 "$@"
ACC SHELL 2018