aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xCVSROOT/cfg.pm4
-rwxr-xr-xCVSROOT/log_accum.pl2
2 files changed, 4 insertions, 2 deletions
diff --git a/CVSROOT/cfg.pm b/CVSROOT/cfg.pm
index 6dfbfe0f6a4e..088b52321ce8 100755
--- a/CVSROOT/cfg.pm
+++ b/CVSROOT/cfg.pm
@@ -11,7 +11,7 @@
package cfg;
use strict;
use vars qw($DEBUG $FILE_PREFIX $MAILADDRS $MAILBANNER $MAILCMD
- $TMPDIR %TEMPLATE_HEADERS);
+ $MAIL_ON_DIR_CREATION $TMPDIR %TEMPLATE_HEADERS);
######################
@@ -66,6 +66,8 @@ $MAILADDRS = "nobody";
# i.e. $MAILBANNER = "Project X CVS Repository";
$MAILBANNER = "";
+# Send mail when directories are created in the repository.
+$MAIL_ON_DIR_CREATION = 1;
diff --git a/CVSROOT/log_accum.pl b/CVSROOT/log_accum.pl
index 81f8ad55fcb8..547e39e1be75 100755
--- a/CVSROOT/log_accum.pl
+++ b/CVSROOT/log_accum.pl
@@ -507,7 +507,7 @@ if ($input_params =~ /New directory/) {
push @text, " $input_params";
&do_changes_file(@text);
- #&mail_notification(@text);
+ &mail_notification(@text) if $cfg::MAIL_ON_DIR_CREATION;
&cleanup_tmpfiles();
exit 0;
}