#! /usr/bin/sh
########
#  Product: MailUtilities
#  Fileset: MAILERS
#  configure
#  @(#) $Revision 10.0 $
########
#
# (c) Copyright Hewlett-Packard Company 1993
#
########
exitval=0			# Anticipate success

UTILS="/usr/lbin/sw/control_utils"
if [[ ! -f $UTILS ]]
then
    echo "ERROR:   Cannot find $UTILS"
    exit 1
fi
. $UTILS

#
#        Files created by this MAILERS configure script
#

newfiles="/etc/mail/mailcap"

#
#        Update configuration files in /etc from /usr/newconfig
#        only if the scripts do not contain user modifications.
#

for file in \
	/etc/mail/mailcap
do
	newconfig_cp $file
	case  $? in
	  100)
		# 	Original not present, but working copy is present
		newconfig_msgs 100
	    ;;
	  103)
		# 	Original is present and differs from working copy and
		#       from the new file
		newconfig_msgs 103
	    ;;
	esac
done

#######
# Update the live_files for MAILERS
#
#   Add new files to the list.
#

#NOTYET for file in $newfiles
#NOTYET do
#NOTYET		swmodify add $file
#NOTYET done

exit $exitval
