#!/bin/bash
+###
#
# MAIN CONFIGURATION FILE
#
# to real moderation scripts. Follow the instructions.
#
+set -e
+
#######################################################################
# this is the root directory where moderation software & config
# resides. Make sure that sendmail is in the PATH.
MNG_ROOT=%BASEDIR%/stump
exec >>%BASEDIR%/errs 2>&1
+printf "============ %s " "$*"
+date
+
export MNG_ROOT BASEDIR
# Add bin and local/bin to PATH
NEWSGROUP="%GROUP%"; export NEWSGROUP
+#######################################################################
+# Email handling and mangling
+
+MAILOUT_RECVACK_FORMAIL_ARGS='
+ -I Bcc:%OURUSER%+%ABBREV%-internal-log+mailout@%DOMAIN%
+'
+MAILOUT_ACCEPTACK_FORMAIL_ARGS='
+ -I Bcc:%OURUSER%+mtm-internal-log+mailout@%DOMAIN%
+'
+MAILOUT_REJECT_FORMAIL_ARGS='
+ -I Bcc:%OURUSER%+%ABBREV%-internal-log+mailout@%DOMAIN%
+ -I Bcc:%OURUSER%+%ABBREV%-internal-reject-copy@%DOMAIN%
+'
+
#######################################################################
# STUMP enforces limitations on the maximum number of newsgroups
# used in Newsgroups: header line. The default value is 5. I
#
# this MUST be dfined EVEN if PGP is set to "none".
# This goes into your Approved: field.
-PMUSER_APPROVAL="%GROUP% approval key <urcm-moderators@chiark.greenend.org.uk>"
+PMUSER_APPROVAL="%GROUP% approval key <%MODEMAIL%>"
export PMUSER_APPROVAL
######################################################################
# a devnulled address, since a lot of rejections/acks will bounce
# and there is no need for a human being to see the bounces.
#
-MUNGED_ADDRESS=%OURUSER%+urcm-bounces@%DOMAIN%
+MUNGED_ADDRESS=%OURUSER%+%ABBREV%-bounces@%DOMAIN%
export MUNGED_ADDRESS
######################################################################
# address for the no-ack requests.
-NOACK=%OURUSER%+urcm-noack@chiark.greenend.org.uk
+NOACK=%OURUSER%+%ABBREV%-noack@chiark.greenend.org.uk
export NOACK
######################################################################
# Official address for submissions to the newsgroup.
#
-SUBMIT=%OURUSER%+urcm+%KEYSUBMIT%@chiark.greenend.org.uk; export SUBMIT
+SUBMIT=%OURUSER%+%ABBREV%+%KEYSUBMIT%@chiark.greenend.org.uk; export SUBMIT
###################################################################### Flags
#