:
: utcat - display a conference for utree
: browse option shows the first 2 lines of a conference
:

trap 'exit 0' 2
trap '' 15 3

if [ $# -eq 0 ]
then	echo "Usage: $0 [-b] conference-dir-path"
	exit
fi

if [ "$1" = "-b" ]
then	cmd="head -2"
	shift
else	cmd=cat
fi

USERS=`cat $1/.users`
CONF=`basename $1`

cat <<%%%

*** $CONF *****************************
Created: `mtimeof $1`            Users: $USERS

%%%
expr $USERS + 1 >$1/.users
exec $cmd $1/.message
