####################
# ezmlmrc contents #
####################

  prompt "ezmlmrc contents:     "

# make sure a few ezmlm-make switches work
  ${EZBIN}/ezmlm-make -+qkgu -C${EZBIN}/lang/en_US "$DIR" || \
	fatal "failed to edit test list to +qkgu"
  grep deny "${DIR}/editor" >/dev/null 2>&1 || \
	fatal "failed to implement -k for list"
  grep "ezmlm-request" "${DIR}/manager" >/dev/null 2>&1 || \
	fatal "failed to implement -q for list"
  test -e "$DIR"/subgetonly || \
	fatal "failed to implement -g for list"
  grep allow "${DIR}/editor" >/dev/null 2>&1 || \
	fatal "failed to implement -u for list"

  ${EZBIN}/ezmlm-make -+QKGU -C${EZBIN}/lang/en_US "$DIR" || \
	fatal "failed to edit test list to +QKGU"
  test -e "$DIR"/subgetonly && \
	fatal "failed to implement -G for list"

# edit the list (add moderation and remove admin)
  ${EZBIN}/ezmlm-make -+rsm -C${EZBIN}/lang/en_US "$DIR" || \
	fatal "failed to edit test list to +rsm"
# edit the list (add text file editing and list/log)
${EZBIN}/ezmlm-make -+ln -C${EZBIN}/lang/en_US "$DIR" || \
	fatal "failed to edit test list to +ln"

# Set up a text file for use in testing copy()
  mkdir -p "${DIR}/text"
  (
    echo 'Local: <#L#>'
    echo 'local: <#l#>'
    echo 'host: <#h#>'
    echo 'Target: <#A#>'
    echo 'TargetLocal: <#a#>'
    echo 'Confirm: <#R#>'
    echo 'Cookie: <#c#>'
    echo 'Hash: <#C#>'
    echo 'Time: <#T#>'
    echo 'Action: <#X#>'
    echo 'MsgNum: <#n#>'
    echo 'ConfirmLocal: <#r#>'
    echo 'target: <#t#>'
    for flag in 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z; do
      echo "<=${flag}=>"
      echo "Flag: ${flag}"
    done
  ) >"${DIR}/text/top"

  # remove inlocal/inhost - shouldn't be used
  rm -f "${DIR}/inlocal" "${DIR}/inhost" > /dev/null || \
    fatal "failed to remove inlocal/inhost for testlist"

  echo "OK"

