# $Id: 511-ezmlm-manage-subscribe 129 2004-12-24 22:11:57Z bruce $

if [ $SECT -le 5 ]; then

  prompt "ezmlm-manage (subscribe): "

  DEFAULT="subscribe"; export DEFAULT
  LOCAL="${LOC}-${DEFAULT}"; export LOCAL
  ${EZBIN}/ezmlm-manage -S "$DIR" <"$TMP" >"$ERR" 2>&1 || \
  { ${ECHO} "failed to produce subscribe confirmation"; exit 100; }

  grephdr_manage
  grephdr list-unsubscribe: "<mailto:${LOC}-unsubscribe-test=example.org@${HOST}>"
  grephdr subject: "welcome to ${LOC}@${HOST}"
  grephdr_empty

  ${ECHO} OK

fi
