#! /csuite/bin/bash # bm_submit potter # Copyright (C) 1999 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 ## bm_submit - Submit a message to the bulk mailer # # This script first produces and then processes a form # used to submit a message to the bulk mailer. cd /tmp . $DOCUMENT_ROOT/.cgi-funclib cs_html_head -t userhelp $"Bulk Mailer - Message Submission Form" 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 # delete to here..... # # # this sets up for first visit... we'll paint the form... if [ -z "$CONTENT_LENGTH" ] || [ "$CONTENT_LENGTH" -eq 0 ]; then #if [ ! -z "$cgi_spoolfile" ]; then echo $"" #set #echo "" ## we'll keep this around for a while... ## we'll want to initialize some variables... # 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 # we'll keep this around for a while... 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 $"