#!/bin/sh

# Copy aside the configuration files so customizations will not
# be overwritten.
# 

Date=`date +%m%d%y%M`
if test -f /etc/mail/main.cf
then
	cp -p /etc/mail/main.cf /etc/mail/main.cf.$Date
fi

if test -f /etc/mail/sendmail.cf
then
	cp -p /etc/mail/sendmail.cf /etc/mail/sendmail.cf.$Date
fi

if test -f /etc/mail/subsidiary.cf
then
	cp -p /etc/mail/subsidiary.cf /etc/mail/subsidiary.cf.$Date
fi

echo "\n"
echo "The following files have been overwritten by removing this patch"
echo "	"
echo "		/etc/mail/main.cf"
echo "		/etc/mail/sendmail.cf"
echo "		/etc/mail/subsidiary.cf"
echo "\n"
echo "Copies of them have been saved with the following names" 
echo "\n"
echo "		/etc/mail/main.cf.$Date"
echo "		/etc/mail/sendmail.cf.$Date"
echo "		/etc/mail/subsidiary.cf.$Date"
echo "\n"
echo "The files need to be manually merged if any customizations"
echo "were added since installation of this patch"

exit 0
