open HTACCESS, ">.htaccess";
print HTACCESS <<'END';
# don't allow people to retrieve non-cgi executable files or our private data
-<FilesMatch ^(.*\.pl|.*localconfig.*|processmail|runtests.sh)$>
+<FilesMatch ^(.*\.pl|.*localconfig.*|runtests.sh)$>
deny from all
</FilesMatch>
<FilesMatch ^(localconfig.js|localconfig.rdf)$>
#
# These are the files which need to be marked executable
-my @executable_files = ('processmail', 'whineatnews.pl', 'collectstats.pl',
+my @executable_files = ('whineatnews.pl', 'collectstats.pl',
'checksetup.pl', 'importxml.pl', 'runtests.sh');
# tell me if a file is executable. All CGI files and those in @executable_files
use XML::Parser;
use Data::Dumper;
$Data::Dumper::Useqq = 1;
+use Bugzilla::BugMail;
require "CGI.pl";
require "globals.pl";
$log .= "\n\n\n";
}
- system("./processmail", $id, $exporter);
+ Bugzilla::BugMail::Send($id, { 'changer' => $exporter });
}
my $subject = "$bugqty bug(s) successfully moved from $urlbase to "
use vars qw($template $userid %COOKIE);
use Bug;
+use Bugzilla::BugMail;
$::lockcount = 0;
"($id, $exporterid, now(), " . SqlQuote($comment) . ")");
print "<P>Bug $id moved to " . Param("move-to-url") . ".<BR>\n";
- system("./processmail", $id, $exporter);
+ Bugzilla::BugMail::Send($id, { 'changer' => $exporter });
}
}
print "<P>\n";
my @cc;
# Create the ccid hash for inserting into the db
-# and the list for passing to processmail
+# and the list for passing to Bugzilla::BugMail::Send
# use a hash rather than a list to avoid adding users twice
if (defined $::FORM{'cc'}) {
foreach my $person (split(/[ ,]/, $::FORM{'cc'})) {
@ccRemoved = @removed;
}
- # We need to run processmail for dependson/blocked bugs if the dependencies
+ # We need to send mail for dependson/blocked bugs if the dependencies
# change or the status or resolution change. This var keeps track of that.
my $check_dep_bugs = 0;
$newhash{$col} = $newvalues[$i];
$i++;
}
- # for passing to processmail to ensure that when someone is removed
+ # for passing to Bugzilla::BugMail to ensure that when someone is removed
# from one of these fields, they get notified of that fact (if desired)
#
my $origOwner = "";
$col = 'component';
}
- # save off the old value for passing to processmail so the old
- # owner can be notified
+ # save off the old value for passing to Bugzilla::BugMail so
+ # the old owner can be notified
#
if ($col eq 'assigned_to') {
$old = ($old) ? DBID_to_name($old) : "";