#!/bin/sh
#
# $Id: ffxmail.sh,v 3.9.2.1 1995/06/28 19:53:21 mj Exp mj $
#
# Frontend for delivering mail via ffx/ffxqt
#
# Customize case statement for your system!!
#

if [ $# -lt 2 ] ;then
	echo "usage: ffxmail Z:N/F.P|HOST user@domain ..."
	exit 1
fi

node="$1"
shift
addr="$*"

nocmpr="-n";

case $node in

	242:1000/4)
		batch="-b tweety"
		faddr="242:1000/4"
		;;
	tweety.dfv.rwth-aachen.de)
		batch="-b tweety"
		faddr="242:1000/4"
		;;
	zruty.dfv.rwth-aachen.de)
		batch="-b tweety"
		faddr="242:1000/4"
		;;

	242:4900/99)
		batch="-b sungate"
		faddr="242:4900/99"
		;;
	sungate.fido.de)
		batch="-b sungate"
		faddr="242:4900/99"
		;;
	morannon.fido.de)
		batch="-b sungate"
		faddr="242:4900/99"
		;;

	## Insert other nodes her ... ##
	*)
		batch="..."
		faddr="..."
		;;
esac

exec <LIBDIR>/ffx $nocmpr $batch -- $faddr rmail $addr
