mlmmj

changeset fdc57c9e5f56

Remove .sh from mlmmj-make-ml.sh; symlink original name
author Ben Schmidt
date Sun, 03 Oct 2010 22:12:33 +1100
parents dfc9ab125fd4
children 03d9835e2146
files .hgignore ChangeLog Makefile.am README README.listtexts README.postfix README.qmail configure.ac man/mlmmj-make-ml.1 man/mlmmj-make-ml.sh.1 src/Makefile.am src/mlmmj-make-ml.in src/mlmmj-make-ml.sh.in
diffstat 13 files changed, 224 insertions(+), 222 deletions(-) [+]
line diff
     1.1 --- a/.hgignore	Sun Oct 03 21:40:42 2010 +1100
     1.2 +++ b/.hgignore	Sun Oct 03 22:12:33 2010 +1100
     1.3 @@ -18,7 +18,7 @@
     1.4  ^config.h$
     1.5  ^stamp-h1$
     1.6  .*\.Po$
     1.7 -^src/mlmmj-make-ml.sh$
     1.8 +^src/mlmmj-make-ml$
     1.9  
    1.10  # Files generated by make
    1.11  .*\.o$
     2.1 --- a/ChangeLog	Sun Oct 03 21:40:42 2010 +1100
     2.2 +++ b/ChangeLog	Sun Oct 03 22:12:33 2010 +1100
     2.3 @@ -1,3 +1,4 @@
     2.4 + o Remove .sh from mlmmj-make-ml.sh; symlink original name
     2.5   o Correct spelling of 'receive' and 'voodoo' throughout the code and
     2.6     documentation, making mlmmj-recieve a symlink to mlmmj-receive (Chris Webb)
     2.7   o Richer MIME list texts with inline messages (English only so far)
     3.1 --- a/Makefile.am	Sun Oct 03 21:40:42 2010 +1100
     3.2 +++ b/Makefile.am	Sun Oct 03 22:12:33 2010 +1100
     3.3 @@ -10,7 +10,7 @@
     3.4  dist-hook:
     3.5  	rm -rf `find $(distdir)/ -name CVS`
     3.6  
     3.7 -man1_MANS = man/mlmmj-bounce.1 man/mlmmj-make-ml.sh.1 man/mlmmj-receive.1 \
     3.8 +man1_MANS = man/mlmmj-bounce.1 man/mlmmj-make-ml.1 man/mlmmj-receive.1 \
     3.9  	    man/mlmmj-sub.1 man/mlmmj-maintd.1 man/mlmmj-process.1 \
    3.10  	    man/mlmmj-send.1 man/mlmmj-unsub.1 man/mlmmj-list.1
    3.11  
     4.1 --- a/README	Sun Oct 03 21:40:42 2010 +1100
     4.2 +++ b/README	Sun Oct 03 22:12:33 2010 +1100
     4.3 @@ -53,7 +53,7 @@
     4.4  
     4.5      The mmj TUNABLE "delimiter" configures this on a per list basis
     4.6  
     4.7 - 2) Create the mailinglist.  There's a script, mlmmj-make-ml.sh, that will make
     4.8 + 2) Create the mailinglist.  There's a script, mlmmj-make-ml, that will make
     4.9      a mailinglist for mlmmj. It is highly recommended to use this script to make
    4.10      the lists! What is does is described here:
    4.11  
    4.12 @@ -81,7 +81,7 @@
    4.13      files as nobody:nogroup or nobody:nobody
    4.14  
    4.15   3) Make the changes to your mailserver aliases that came as output from
    4.16 -    mlmmj-make-ml.sh. Following the example above they will look like this:
    4.17 +    mlmmj-make-ml. Following the example above they will look like this:
    4.18  
    4.19      mlmmj-test:     "|/usr/bin/mlmmj-receive -L /var/spool/mlmmj/mlmmj-test"
    4.20  
     5.1 --- a/README.listtexts	Sun Oct 03 21:40:42 2010 +1100
     5.2 +++ b/README.listtexts	Sun Oct 03 22:12:33 2010 +1100
     5.3 @@ -6,7 +6,7 @@
     5.4  List texts are stored in listdir/text. They specify the content of various
     5.5  automatic emails that Mlmmj sends. They are provided in a number of different
     5.6  languages. The language to use for a list is chosen when you run the
     5.7 -mlmmj-make-ml.sh script and the appropriate files are copied into your
     5.8 +mlmmj-make-ml script and the appropriate files are copied into your
     5.9  listdir/text directory.
    5.10  
    5.11  This file documents
     6.1 --- a/README.postfix	Sun Oct 03 21:40:42 2010 +1100
     6.2 +++ b/README.postfix	Sun Oct 03 22:12:33 2010 +1100
     6.3 @@ -39,7 +39,7 @@
     6.4      everywhere in this file replace /var/spool/mlmmj with your spool
     6.5      directory.
     6.6  
     6.7 -    Create a mailing list using mlmmj-make-ml.sh.  Make sure to use the
     6.8 +    Create a mailing list using mlmmj-make-ml.  Make sure to use the
     6.9      -s flag to set the spool directory if it isn't /var/spool/mlmmj
    6.10  
    6.11  POSTFIX SETUP
     7.1 --- a/README.qmail	Sun Oct 03 21:40:42 2010 +1100
     7.2 +++ b/README.qmail	Sun Oct 03 22:12:33 2010 +1100
     7.3 @@ -20,7 +20,7 @@
     7.4  
     7.5  Configuration:
     7.6  - the first thing you've to do is to create the list, using the
     7.7 -  mlmmj-make-ml.sh script (follow the classic procedure to do this step)
     7.8 +  mlmmj-make-ml script (follow the classic procedure to do this step)
     7.9  - enter the control directory for the list (${LISTDIR}/control/), and execute
    7.10    the following command:
    7.11     # cd ${LISTDIR}/control/; echo '-' > delimiter
    7.12 @@ -42,7 +42,7 @@
    7.13  - Configuring mlmmj to handle ml@programmazione.it mailing list using qmail as
    7.14    MTA and vpopmail for virtual domain support:
    7.15  
    7.16 -# mlmmj-make-ml.sh -c vpopmail:vchkpw -L ml
    7.17 +# mlmmj-make-ml -c vpopmail:vchkpw -L ml
    7.18  Creating Directorys below /var/spool/mlmmj. Use '-s spooldir' to change
    7.19  The Domain for the List? [] : programmazione.it
    7.20  The emailaddress of the list owner? [postmaster] : postmaster@programmazione.it
     8.1 --- a/configure.ac	Sun Oct 03 21:40:42 2010 +1100
     8.2 +++ b/configure.ac	Sun Oct 03 22:12:33 2010 +1100
     8.3 @@ -45,7 +45,7 @@
     8.4  
     8.5  AC_CONFIG_FILES([Makefile])
     8.6  AC_CONFIG_FILES([src/Makefile])
     8.7 -AC_CONFIG_FILES([src/mlmmj-make-ml.sh])
     8.8 +AC_CONFIG_FILES([src/mlmmj-make-ml])
     8.9  AC_CONFIG_FILES([listtexts/Makefile])
    8.10  AC_CONFIG_FILES([contrib/Makefile])
    8.11  AC_CONFIG_FILES([contrib/receivestrip/Makefile])
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/man/mlmmj-make-ml.1	Sun Oct 03 22:12:33 2010 +1100
     9.3 @@ -0,0 +1,27 @@
     9.4 +.TH mlmmj-make-ml "1" "September 2004" mlmmj-make-ml
     9.5 +.SH NAME
     9.6 +mlmmj-make-ml \- create a mailing list for mlmmj
     9.7 +.SH SYNOPSIS
     9.8 +.B mlmmj-make-ml
     9.9 +\fI[OPTIONS]
    9.10 +.HP
    9.11 +\fB\-h\fR: Display help
    9.12 +.HP
    9.13 +\fB\-L\fR: The name of the mailing list
    9.14 +.HP
    9.15 +\fB\-s\fR: The spool directory, if different from /var/spool/mlmmj
    9.16 +.HP
    9.17 +\fB\-a\fR: Create the needed entries in /etc/aliases
    9.18 +.HP
    9.19 +\fB\-z\fR: Do nothing for now.
    9.20 +.SH DESCRIPTION
    9.21 +This is an interactive script which creates the mailing list directory and thus
    9.22 +the list itself for being run by mlmmj.
    9.23 +.SH BUGS
    9.24 +It's not possible to create a mailinglist entirely on the command line.
    9.25 +.SH AUTHORS
    9.26 +This manual page was written by the following persons:
    9.27 +.HP
    9.28 +Søren Boll Overgaard <boll@debian.org> (based on html2man output)
    9.29 +.HP
    9.30 +Mads Martin Jørgensen <mmj@mmj.dk>
    10.1 --- a/man/mlmmj-make-ml.sh.1	Sun Oct 03 21:40:42 2010 +1100
    10.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.3 @@ -1,27 +0,0 @@
    10.4 -.TH mlmmj-make-ml "1" "September 2004" mlmmj-make-ml
    10.5 -.SH NAME
    10.6 -mlmmj-make-ml \- create a mailing list for mlmmj
    10.7 -.SH SYNOPSIS
    10.8 -.B mlmmj-make-ml
    10.9 -\fI[OPTIONS]
   10.10 -.HP
   10.11 -\fB\-h\fR: Display help
   10.12 -.HP
   10.13 -\fB\-L\fR: The name of the mailing list
   10.14 -.HP
   10.15 -\fB\-s\fR: The spool directory, if different from /var/spool/mlmmj
   10.16 -.HP
   10.17 -\fB\-a\fR: Create the needed entries in /etc/aliases
   10.18 -.HP
   10.19 -\fB\-z\fR: Do nothing for now.
   10.20 -.SH DESCRIPTION
   10.21 -This is an interactive script which creates the mailing list directory and thus
   10.22 -the list itself for being run by mlmmj.
   10.23 -.SH BUGS
   10.24 -It's not possible to create a mailinglist entirely on the command line.
   10.25 -.SH AUTHORS
   10.26 -This manual page was written by the following persons:
   10.27 -.HP
   10.28 -Søren Boll Overgaard <boll@debian.org> (based on html2man output)
   10.29 -.HP
   10.30 -Mads Martin Jørgensen <mmj@mmj.dk>
    11.1 --- a/src/Makefile.am	Sun Oct 03 21:40:42 2010 +1100
    11.2 +++ b/src/Makefile.am	Sun Oct 03 22:12:33 2010 +1100
    11.3 @@ -8,9 +8,9 @@
    11.4  bin_PROGRAMS = mlmmj-send mlmmj-receive mlmmj-process mlmmj-sub \
    11.5                 mlmmj-unsub mlmmj-bounce mlmmj-maintd mlmmj-list
    11.6  
    11.7 -bin_SCRIPTS = mlmmj-make-ml.sh
    11.8 +bin_SCRIPTS = mlmmj-make-ml
    11.9  
   11.10 -EXTRA_DIST = mlmmj-make-ml.sh
   11.11 +EXTRA_DIST = mlmmj-make-ml
   11.12  
   11.13  mlmmj_send_SOURCES = mlmmj-send.c writen.c mail-functions.c itoa.c chomp.c \
   11.14                       incindexfile.c checkwait_smtpreply.c getlistaddr.c \
   11.15 @@ -62,3 +62,4 @@
   11.16  
   11.17  install-exec-hook:
   11.18  	ln -f -s mlmmj-receive $(DESTDIR)$(bindir)/mlmmj-recieve
   11.19 +	ln -f -s mlmmj-make-ml $(DESTDIR)$(bindir)/mlmmj-make-ml.sh
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/src/mlmmj-make-ml.in	Sun Oct 03 22:12:33 2010 +1100
    12.3 @@ -0,0 +1,184 @@
    12.4 +#!/bin/sh
    12.5 +#
    12.6 +# mlmmj-make-ml - henne@hennevogel.de
    12.7 +#
    12.8 +
    12.9 +VERSION="0.1"
   12.10 +DEFAULTDIR="/var/spool/mlmmj"
   12.11 +ALIASFILE=/etc/aliases
   12.12 +
   12.13 +USAGE="mlmmj-make-ml "$VERSION"
   12.14 +"$0" [OPTIONS]
   12.15 +
   12.16 +-h	display this help text
   12.17 +-L	the name of the mailinglist
   12.18 +-s	your spool directory if not "$DEFAULTDIR"
   12.19 +-a	create the needed entrys in your $ALIASFILE file
   12.20 +-z	nuffn for now
   12.21 +-c	chown the spool dir"
   12.22 +
   12.23 +while getopts ":hL:s:azc:" Option
   12.24 +do
   12.25 +case "$Option" in 
   12.26 +	h )
   12.27 +	echo -e "$USAGE"
   12.28 +	exit 0
   12.29 +	;;
   12.30 +	z )
   12.31 +	echo -n "nothing"
   12.32 +	exit 0
   12.33 +	;;
   12.34 +	L )
   12.35 +	LISTNAME="$OPTARG"
   12.36 +	;;
   12.37 +	s )
   12.38 +	SPOOLDIR="$OPTARG"
   12.39 +	;;
   12.40 +	a )
   12.41 +	A_CREATE="YES"
   12.42 +	;;
   12.43 +	c )
   12.44 +	DO_CHOWN=1
   12.45 +	CHOWN="$OPTARG"
   12.46 +	;;
   12.47 +	* )
   12.48 +	echo -e "$0: invalid option\nTry $0 -h for more information."
   12.49 +	exit 1
   12.50 +esac
   12.51 +done
   12.52 +SHIFTVAL=$((OPTIND-1))
   12.53 +shift $SHIFTVAL
   12.54 +
   12.55 +if [ -z "$SPOOLDIR" ]; then
   12.56 +	SPOOLDIR="$DEFAULTDIR"
   12.57 +fi
   12.58 +
   12.59 +echo "Creating Directorys below $SPOOLDIR. Use '-s spooldir' to change"
   12.60 +
   12.61 +if [ -z "$LISTNAME" ]; then
   12.62 +	echo -n "What should the name of the Mailinglist be? [mlmmj-test] : "
   12.63 +	read LISTNAME
   12.64 +	if [ -z "$LISTNAME" ]; then
   12.65 +	LISTNAME="mlmmj-test"
   12.66 +	fi
   12.67 +fi
   12.68 +
   12.69 +LISTDIR="$SPOOLDIR/$LISTNAME"
   12.70 +
   12.71 +mkdir -p $LISTDIR
   12.72 +
   12.73 +for DIR in incoming queue queue/discarded archive text subconf unsubconf \
   12.74 +	   bounce control moderation subscribers.d digesters.d requeue \
   12.75 +	   nomailsubs.d
   12.76 +do
   12.77 +	mkdir "$LISTDIR"/"$DIR"
   12.78 +done
   12.79 +
   12.80 +test -f "$LISTDIR"/index || touch "$LISTDIR"/index
   12.81 +
   12.82 +echo -n "The Domain for the List? [] : "
   12.83 +read FQDN
   12.84 +if [ -z "$FQDN" ]; then
   12.85 +	FQDN=`domainname -f`
   12.86 +fi
   12.87 +
   12.88 +echo -n "The emailaddress of the list owner? [postmaster] : "
   12.89 +read OWNER
   12.90 +if [ -z "$OWNER" ]; then
   12.91 +	OWNER="postmaster"
   12.92 +fi
   12.93 +echo "$OWNER" > "$LISTDIR"/"control/owner"
   12.94 +
   12.95 +(
   12.96 +	cd "@textlibdir@"
   12.97 +	echo
   12.98 +	echo "For the list texts you can choose between the following languages or"
   12.99 +	echo "give a absolute path to a directory containing the texts."
  12.100 +	echo
  12.101 +	echo "Available languages:"
  12.102 +	ls
  12.103 +
  12.104 +	TEXTPATHDEF=en
  12.105 +	echo -n "The path to texts for the list? [$TEXTPATHDEF] : "
  12.106 +	read TEXTPATHIN
  12.107 +	if [ -z "$TEXTPATHIN" ] ; then
  12.108 +		TEXTPATH="$TEXTPATHDEF"
  12.109 +	else
  12.110 +		TEXTPATH="$TEXTPATHIN"
  12.111 +	fi
  12.112 +	if [ ! -d "$TEXTPATH" ]; then
  12.113 +		echo
  12.114 +		echo "**NOTE** Could not copy the texts for the list"
  12.115 +		echo "Please manually copy the files from the listtexts/ directory"
  12.116 +		echo "in the source distribution of mlmmj."
  12.117 +		sleep 2
  12.118 +	else
  12.119 +		cp "$TEXTPATH"/* "$LISTDIR"/"text"
  12.120 +	fi
  12.121 +)
  12.122 +
  12.123 +LISTADDRESS="$LISTNAME@$FQDN"
  12.124 +echo "$LISTADDRESS" > "$LISTDIR"/control/"listaddress"
  12.125 +
  12.126 +MLMMJRECEIVE=`which mlmmj-receive 2>/dev/null`
  12.127 +if [ -z "$MLMMJRECEIVE" ]; then
  12.128 +	MLMMJRECEIVE="/path/to/mlmmj-receive"
  12.129 +fi
  12.130 +
  12.131 +MLMMJMAINTD=`which mlmmj-maintd 2>/dev/null`
  12.132 +if [ -z "$MLMMJMAINTD" ]; then
  12.133 +	MLMMJMAINTD="/path/to/mlmmj-maintd"
  12.134 +fi
  12.135 +
  12.136 +ALIAS="$LISTNAME:  \"|$MLMMJRECEIVE -L $SPOOLDIR/$LISTNAME/\""
  12.137 +CRONENTRY="0 */2 * * * \"$MLMMJMAINTD -F -L $SPOOLDIR/$LISTNAME/\""
  12.138 +
  12.139 +if [ -n "$A_CREATE" ]; then
  12.140 +	echo "I want to add the following to your $ALIASFILE file:"
  12.141 +	echo "$ALIAS"
  12.142 +
  12.143 +	echo -n "is this ok? [y/N] : "
  12.144 +	read OKIDOKI
  12.145 +	case $OKIDOKI in
  12.146 +		y|Y)
  12.147 +		echo "$ALIAS" >> $ALIASFILE
  12.148 +		;;
  12.149 +		n|N)
  12.150 +		exit 0
  12.151 +		;;
  12.152 +		*)
  12.153 +		echo "Options was: y, Y, n or N"
  12.154 +	esac
  12.155 +else
  12.156 +	echo
  12.157 +	echo "Don't forget to add this to $ALIASFILE:"
  12.158 +	echo "$ALIAS"
  12.159 +fi
  12.160 +
  12.161 +if [ "$DO_CHOWN" ] ; then
  12.162 +	echo
  12.163 +	echo -n "chown -R $CHOWN $SPOOLDIR/$LISTNAME? [y/n]: "
  12.164 +	read OKIDOKI
  12.165 +	case $OKIDOKI in
  12.166 +		y|Y)
  12.167 +			chown -R $CHOWN $SPOOLDIR/$LISTNAME
  12.168 +		;;
  12.169 +		n|N)
  12.170 +			exit 0
  12.171 +		;;
  12.172 +		*)
  12.173 +			echo "option is: y, Y, n, N"
  12.174 +		;;
  12.175 +	esac
  12.176 +fi
  12.177 +
  12.178 +echo
  12.179 +echo "If you're not starting mlmmj-maintd in daemon mode,"
  12.180 +echo "don't forget to add this to your crontab:"
  12.181 +echo "$CRONENTRY"
  12.182 +
  12.183 +echo
  12.184 +echo " ** FINAL NOTES **
  12.185 +1) The mailinglist directory have to be owned by the user running the 
  12.186 +mailserver (i.e. starting the binaries to work the list)
  12.187 +2) Run newaliases"
    13.1 --- a/src/mlmmj-make-ml.sh.in	Sun Oct 03 21:40:42 2010 +1100
    13.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.3 @@ -1,184 +0,0 @@
    13.4 -#!/bin/sh
    13.5 -#
    13.6 -# mlmmj-make-ml.sh - henne@hennevogel.de
    13.7 -#
    13.8 -
    13.9 -VERSION="0.1"
   13.10 -DEFAULTDIR="/var/spool/mlmmj"
   13.11 -ALIASFILE=/etc/aliases
   13.12 -
   13.13 -USAGE="mlmmj-make-ml "$VERSION"
   13.14 -"$0" [OPTIONS]
   13.15 -
   13.16 --h	display this help text
   13.17 --L	the name of the mailinglist
   13.18 --s	your spool directory if not "$DEFAULTDIR"
   13.19 --a	create the needed entrys in your $ALIASFILE file
   13.20 --z	nuffn for now
   13.21 --c	chown the spool dir"
   13.22 -
   13.23 -while getopts ":hL:s:azc:" Option
   13.24 -do
   13.25 -case "$Option" in 
   13.26 -	h )
   13.27 -	echo -e "$USAGE"
   13.28 -	exit 0
   13.29 -	;;
   13.30 -	z )
   13.31 -	echo -n "nothing"
   13.32 -	exit 0
   13.33 -	;;
   13.34 -	L )
   13.35 -	LISTNAME="$OPTARG"
   13.36 -	;;
   13.37 -	s )
   13.38 -	SPOOLDIR="$OPTARG"
   13.39 -	;;
   13.40 -	a )
   13.41 -	A_CREATE="YES"
   13.42 -	;;
   13.43 -	c )
   13.44 -	DO_CHOWN=1
   13.45 -	CHOWN="$OPTARG"
   13.46 -	;;
   13.47 -	* )
   13.48 -	echo -e "$0: invalid option\nTry $0 -h for more information."
   13.49 -	exit 1
   13.50 -esac
   13.51 -done
   13.52 -SHIFTVAL=$((OPTIND-1))
   13.53 -shift $SHIFTVAL
   13.54 -
   13.55 -if [ -z "$SPOOLDIR" ]; then
   13.56 -	SPOOLDIR="$DEFAULTDIR"
   13.57 -fi
   13.58 -
   13.59 -echo "Creating Directorys below $SPOOLDIR. Use '-s spooldir' to change"
   13.60 -
   13.61 -if [ -z "$LISTNAME" ]; then
   13.62 -	echo -n "What should the name of the Mailinglist be? [mlmmj-test] : "
   13.63 -	read LISTNAME
   13.64 -	if [ -z "$LISTNAME" ]; then
   13.65 -	LISTNAME="mlmmj-test"
   13.66 -	fi
   13.67 -fi
   13.68 -
   13.69 -LISTDIR="$SPOOLDIR/$LISTNAME"
   13.70 -
   13.71 -mkdir -p $LISTDIR
   13.72 -
   13.73 -for DIR in incoming queue queue/discarded archive text subconf unsubconf \
   13.74 -	   bounce control moderation subscribers.d digesters.d requeue \
   13.75 -	   nomailsubs.d
   13.76 -do
   13.77 -	mkdir "$LISTDIR"/"$DIR"
   13.78 -done
   13.79 -
   13.80 -test -f "$LISTDIR"/index || touch "$LISTDIR"/index
   13.81 -
   13.82 -echo -n "The Domain for the List? [] : "
   13.83 -read FQDN
   13.84 -if [ -z "$FQDN" ]; then
   13.85 -	FQDN=`domainname -f`
   13.86 -fi
   13.87 -
   13.88 -echo -n "The emailaddress of the list owner? [postmaster] : "
   13.89 -read OWNER
   13.90 -if [ -z "$OWNER" ]; then
   13.91 -	OWNER="postmaster"
   13.92 -fi
   13.93 -echo "$OWNER" > "$LISTDIR"/"control/owner"
   13.94 -
   13.95 -(
   13.96 -	cd "@textlibdir@"
   13.97 -	echo
   13.98 -	echo "For the list texts you can choose between the following languages or"
   13.99 -	echo "give a absolute path to a directory containing the texts."
  13.100 -	echo
  13.101 -	echo "Available languages:"
  13.102 -	ls
  13.103 -
  13.104 -	TEXTPATHDEF=en
  13.105 -	echo -n "The path to texts for the list? [$TEXTPATHDEF] : "
  13.106 -	read TEXTPATHIN
  13.107 -	if [ -z "$TEXTPATHIN" ] ; then
  13.108 -		TEXTPATH="$TEXTPATHDEF"
  13.109 -	else
  13.110 -		TEXTPATH="$TEXTPATHIN"
  13.111 -	fi
  13.112 -	if [ ! -d "$TEXTPATH" ]; then
  13.113 -		echo
  13.114 -		echo "**NOTE** Could not copy the texts for the list"
  13.115 -		echo "Please manually copy the files from the listtexts/ directory"
  13.116 -		echo "in the source distribution of mlmmj."
  13.117 -		sleep 2
  13.118 -	else
  13.119 -		cp "$TEXTPATH"/* "$LISTDIR"/"text"
  13.120 -	fi
  13.121 -)
  13.122 -
  13.123 -LISTADDRESS="$LISTNAME@$FQDN"
  13.124 -echo "$LISTADDRESS" > "$LISTDIR"/control/"listaddress"
  13.125 -
  13.126 -MLMMJRECEIVE=`which mlmmj-receive 2>/dev/null`
  13.127 -if [ -z "$MLMMJRECEIVE" ]; then
  13.128 -	MLMMJRECEIVE="/path/to/mlmmj-receive"
  13.129 -fi
  13.130 -
  13.131 -MLMMJMAINTD=`which mlmmj-maintd 2>/dev/null`
  13.132 -if [ -z "$MLMMJMAINTD" ]; then
  13.133 -	MLMMJMAINTD="/path/to/mlmmj-maintd"
  13.134 -fi
  13.135 -
  13.136 -ALIAS="$LISTNAME:  \"|$MLMMJRECEIVE -L $SPOOLDIR/$LISTNAME/\""
  13.137 -CRONENTRY="0 */2 * * * \"$MLMMJMAINTD -F -L $SPOOLDIR/$LISTNAME/\""
  13.138 -
  13.139 -if [ -n "$A_CREATE" ]; then
  13.140 -	echo "I want to add the following to your $ALIASFILE file:"
  13.141 -	echo "$ALIAS"
  13.142 -
  13.143 -	echo -n "is this ok? [y/N] : "
  13.144 -	read OKIDOKI
  13.145 -	case $OKIDOKI in
  13.146 -		y|Y)
  13.147 -		echo "$ALIAS" >> $ALIASFILE
  13.148 -		;;
  13.149 -		n|N)
  13.150 -		exit 0
  13.151 -		;;
  13.152 -		*)
  13.153 -		echo "Options was: y, Y, n or N"
  13.154 -	esac
  13.155 -else
  13.156 -	echo
  13.157 -	echo "Don't forget to add this to $ALIASFILE:"
  13.158 -	echo "$ALIAS"
  13.159 -fi
  13.160 -
  13.161 -if [ "$DO_CHOWN" ] ; then
  13.162 -	echo
  13.163 -	echo -n "chown -R $CHOWN $SPOOLDIR/$LISTNAME? [y/n]: "
  13.164 -	read OKIDOKI
  13.165 -	case $OKIDOKI in
  13.166 -		y|Y)
  13.167 -			chown -R $CHOWN $SPOOLDIR/$LISTNAME
  13.168 -		;;
  13.169 -		n|N)
  13.170 -			exit 0
  13.171 -		;;
  13.172 -		*)
  13.173 -			echo "option is: y, Y, n, N"
  13.174 -		;;
  13.175 -	esac
  13.176 -fi
  13.177 -
  13.178 -echo
  13.179 -echo "If you're not starting mlmmj-maintd in daemon mode,"
  13.180 -echo "don't forget to add this to your crontab:"
  13.181 -echo "$CRONENTRY"
  13.182 -
  13.183 -echo
  13.184 -echo " ** FINAL NOTES **
  13.185 -1) The mailinglist directory have to be owned by the user running the 
  13.186 -mailserver (i.e. starting the binaries to work the list)
  13.187 -2) Run newaliases"