#
# error: some dispatching definition to error mailer
#

REVISION_ID='@(#)error	3.12 (motonori/WIDE) 11/20/94'

#|# use default error messages (yes/no)
#|#USE_DEFAULT_ERROR_MESSAGES=yes

: ${USE_DEFAULT_ERROR_MESSAGES=yes}
if [ "$USE_DEFAULT_ERROR_MESSAGES" != no ]
then

	if [ "$REVISION_ID_LIST" ]
	then
		REVISION_ID_LIST="$REVISION_ID_LIST\\
# $REVISION_ID"
	else
		REVISION_ID_LIST="# $REVISION_ID"
	fi

	if [ "$CF_FORMAT" = V1 -o "$CF_FORMAT" = NMTC ]
	then

DSPTERRORRULE='R<error:deliver>.$*<@$*>$*	$#error$: can not deliver to $2\
R<error:lower>.$*<@$-.$*>$*	$#error$: never heard of $2 in domain $3\
R<error:$*>.$*			$#error$: $1'

	else

DSPTERRORRULE='R<error:deliver>.$*<@$*>$*	$#error$@UNAVAILABLE$: 552 can not deliver to $2\
R<error:lower>.$*<@$-.$*>$*	$#error$@NOHOST$: 554 never heard of $2 in domain $3\
R<error:$*>.$*			$#error$@UNAVAILABLE$: 552 $1'

	fi

fi
