config() {
  NEW="$1"
  OLD="$(dirname $NEW)/$(basename $NEW .new)"
  # If there's no config file by that name, mv it over:
  if [ ! -r $OLD ]; then
    mv $NEW $OLD
  elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
    # toss the redundant copy
    rm $NEW
  fi
  # Otherwise, we leave the .new copy for the admin to consider...
}

config etc/nmh/MailAliases.new
config etc/nmh/components.new
config etc/nmh/digestcomps.new
config etc/nmh/distcomps.new
config etc/nmh/forwcomps.new
config etc/nmh/mhl.body.new
config etc/nmh/mhl.digest.new
config etc/nmh/mhl.format.new
config etc/nmh/mhl.forward.new
config etc/nmh/mhl.headers.new
config etc/nmh/mhl.reply.new
config etc/nmh/mhn.defaults.new
config etc/nmh/mhshow.marker.new
config etc/nmh/mts.conf.new
config etc/nmh/rcvdistcomps.new
config etc/nmh/rcvdistcomps.outbox.new
config etc/nmh/replcomps.new
config etc/nmh/replgroupcomps.new
config etc/nmh/scan.MMDDYY.new
config etc/nmh/scan.YYYYMMDD.new
config etc/nmh/scan.curses.new
config etc/nmh/scan.default.new
config etc/nmh/scan.highlighted.new
config etc/nmh/scan.mailx.new
config etc/nmh/scan.nomime.new
config etc/nmh/scan.size.new
config etc/nmh/scan.time.new
config etc/nmh/scan.timely.new
config etc/nmh/scan.unseen.new

