#!/bin/sh
#	testpath a b c ...
#
# Generate a test message to a!b!c!... and mail it.

U=unknown
U=`whoami`
if [ -n "$USER"    ];then U=$USER   ;fi
if [ -n "$LOGNAME" ];then U=$LOGNAME;fi

P=`echo $* | tr ' ' '!'` 
{	echo Subject: test
	echo
	echo This is a test of mail to:
	echo '	'$P
	echo Origin: `hostname`!$U
}	| mail -v $P
