#! /csuite/bin/bash # mdml-create,v 1.2 1998/12/04 19:08:04 potter Exp # Copyright (C) 1995, 1996 Chebucto Community Net Society # This file is part of Chebucto Suite. Use is governed by the terms # laid out in the file COPYRIGHT. # template version 1.0 ## mdml-create - MajorDomo List Creation # # This script processes a form used to request the creation # of majordomo mailing lists. cd /tmp . $DOCUMENT_ROOT/.cgi-funclib cs_html_head -t userhelp $"Mailing List Creation" trap cs_html_foot 0 # # Main # majordomodir=$MD_LISTS archivedir=$MD_VAR/archive digestdir=$MD_VAR/digests spooldir=$MD_HOME/spool if [ -z "$USER" ]; then echo $"
Please select the request you would like to process:
" exit 0 fi if [ ! -z "$cgi_spoolfile" ]; then echo $"
" #set #echo "" check_regular= check_digest= check_regular_digest= case "$cgi_type" in "regular") check_regular="checked" ;; "digest") check_digest="checked" ;; "regular-digest") check_regular_digest="checked" ;; esac check_open= check_closed= case "$cgi_subscribe_policy" in "open") check_open="checked" ;; "closed") check_closed="checked" ;; esac check_mno= check_myes= case "$cgi_moderate" in "no") check_mno="checked" ;; "yes") check_myes="checked" ;; esac check_pno= check_pyes= case "$cgi_private_who" in "no") check_pno="checked" ;; "yes") check_pyes="checked" ;; esac echo $"
" ;; *) echo $"
The mailing list \"$cgi_listname\" ($cgi_description) could not be created.
" unlock $spooldir/$cgi_listname $$ exit 5 ;; esac ;; "no") echo $"From: majordomo-owner (Mailing List Creator) To: $cgi_owner Subject: Request for mailing list ($cgi_listname) denied Your request for a mailing list has been denied. Please reply to this message if you require information on why your request has been denied. $FULL_NAME Mailing List Management " | $SENDMAIL echo $"
The mailing list \"$cgi_listname\" ($cgi_description) was denied approval for creation. " ;; esac echo $"