VERSION="0.1"
DEFAULTDIR="/var/spool/mlmmj"
+ALIASFILE=/etc/aliases
USAGE="mlmmj-make-ml "$VERSION"
"$0" [OPTIONS]
-h display this help text
-L the name of the mailinglist
-s your spool directory if not "$DEFAULTDIR"
--a create the needed entrys in your /etc/aliases file
+-a create the needed entrys in your $ALIASFILE file
-z nuffn for now
-c chown the spool dir"
CRONENTRY="0 */2 * * * \"$MLMMJMAINTD -F -L $SPOOLDIR/$LISTNAME/\""
if [ -n "$A_CREATE" ]; then
- echo "I want to add the following to your /etc/aliases file:"
+ echo "I want to add the following to your $ALIASFILE file:"
echo "$ALIAS"
echo -n "is this ok? [y/N] : "
read OKIDOKI
case $OKIDOKI in
y|Y)
- echo "$ALIAS" >> /etc/aliases
+ echo "$ALIAS" >> $ALIASFILE
;;
n|N)
exit 0
esac
else
echo
- echo "Don't forget to add this to /etc/aliases:"
+ echo "Don't forget to add this to $ALIASFILE:"
echo "$ALIAS"
fi
#include "wrappers.h"
#include "memory.h"
#include "getlistaddr.h"
+#include "mlmmj.h"
char *substitute(const char *line, const char *listaddr, size_t datacount,
char **data)
if(replyto) {
myreplyto = substitute(replyto, listaddr, tokencount, data);
tmp = concatstr(3, "Reply-To: ", myreplyto, "\n");
- free(myreplyto);
+ myfree(myreplyto);
myreplyto = tmp;
} else
myreplyto = NULL;