chiark / gitweb /
Use umask 007; preserve perms on logfiles
[modbot-mtm.git] / stump / etc / modenv.INO
index e403b4237e4eff01b230b48343de2d149a22e1f1..382861e9013d38ebdbbf877995f505a03f260444 100755 (executable)
@@ -12,6 +12,8 @@
 
 set -e
 
+umask 007
+
 #######################################################################
 # this is the root directory where moderation software & config
 # resides. Make sure that sendmail is in the PATH.
@@ -44,12 +46,15 @@ MAILOUT_RECVACK_FORMAIL_ARGS='
        -I Bcc:%OURUSER%+%ABBREV%-internal-log+mailout@%DOMAIN%
 '
 MAILOUT_ACCEPTACK_FORMAIL_ARGS='
-       -I Bcc:%OURUSER%+mtm-internal-log+mailout@%DOMAIN%
+       -I Bcc:%OURUSER%+%ABBREV%-internal-log+mailout@%DOMAIN%
 '
 MAILOUT_REJECT_FORMAIL_ARGS='
        -I Bcc:%OURUSER%+%ABBREV%-internal-log+mailout@%DOMAIN%
        -I Bcc:%OURUSER%+%ABBREV%-internal-reject-copy@%DOMAIN%
 '
+export MAILOUT_RECVACK_FORMAIL_ARGS
+export MAILOUT_ACCEPTACK_FORMAIL_ARGS
+export MAILOUT_REJECT_FORMAIL_ARGS
 
 #######################################################################
 # STUMP enforces limitations on the maximum number of newsgroups
@@ -285,6 +290,5 @@ export BEGIN_PGP_SIGNED_MESSAGE BOT_SUBJECT_PREFIX
 #
 
 if [ "x$1" != "x" ]; then
-  umask 077
   antivirus | decodeBase64 | "$@"
 fi