diff -ru ../../code/bugzilla-2.14/Bug.pm ./Bug.pm --- ../../code/bugzilla-2.14/Bug.pm Thu Oct 24 12:18:04 2002 +++ ./Bug.pm Tue Oct 29 16:15:17 2002 @@ -1,4 +1,4 @@ -#!/usr/bonsaitools/bin/perl -w +#!d:/perl/bin/perl.exe -w # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff -ru ../../code/bugzilla-2.14/CGI.pl ./CGI.pl --- ../../code/bugzilla-2.14/CGI.pl Thu Oct 24 12:18:04 2002 +++ ./CGI.pl Tue Oct 29 16:15:17 2002 @@ -735,9 +735,8 @@ "login" => $login, "password" => $password}); - open SENDMAIL, "|/usr/lib/sendmail -t"; - print SENDMAIL $msg; - close SENDMAIL; +# Win32 sendmail functionality +ntsendmail($login . Param('emailsuffix'), $msg); print "The password for the e-mail address\n"; print "$login has been e-mailed to that address.\n"; @@ -1176,7 +1175,7 @@ AppendComment($id, DBID_to_name($who), "*** This bug has been confirmed by popular vote. ***"); print "
Bug $id has been confirmed by votes.\n"; - system("./processmail", $id); + system ("D:\\perl\\bin\\perl", "processmail.pl", $id); print " | Go To BUG# $id |
Attachment $attachid to bug $id created\n"; - system("./processmail", $id, $::COOKIE{'Bugzilla_login'}); + system ("D:\\perl\\bin\\perl", "processmail.pl", $id, $::COOKIE{'Bugzilla_login'}); print " | Go Back to BUG# $id |
Create another attachment to bug $id
\n"; } diff -ru ../../code/bugzilla-2.14/describecomponents.cgi ./describecomponents.cgi --- ../../code/bugzilla-2.14/describecomponents.cgi Thu Oct 24 12:18:04 2002 +++ ./describecomponents.cgi Tue Oct 29 16:15:17 2002 @@ -1,4 +1,4 @@ -#!/usr/bonsaitools/bin/perl -w +#!d:/perl/bin/perl.exe -w # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff -ru ../../code/bugzilla-2.14/describekeywords.cgi ./describekeywords.cgi --- ../../code/bugzilla-2.14/describekeywords.cgi Thu Oct 24 12:18:04 2002 +++ ./describekeywords.cgi Tue Oct 29 16:15:17 2002 @@ -1,4 +1,4 @@ -#!/usr/bonsaitools/bin/perl -w +#!d:/perl/bin/perl.exe -w # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff -ru ../../code/bugzilla-2.14/doeditparams.cgi ./doeditparams.cgi --- ../../code/bugzilla-2.14/doeditparams.cgi Thu Oct 24 12:18:05 2002 +++ ./doeditparams.cgi Tue Oct 29 16:15:17 2002 @@ -1,4 +1,4 @@ -#!/usr/bonsaitools/bin/perl -w +#!d:/perl/bin/perl.exe -w # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public @@ -111,7 +111,7 @@ unlink "data/versioncache"; print "";
-system("./syncshadowdb", "-v");
+system("d:\\perl\\bin\\perl", "syncshadowdb", "-v");
print "";
print "OK, done.\n"; diff -ru ../../code/bugzilla-2.14/doeditvotes.cgi ./doeditvotes.cgi --- ../../code/bugzilla-2.14/doeditvotes.cgi Thu Oct 24 12:18:05 2002 +++ ./doeditvotes.cgi Tue Oct 29 16:15:17 2002 @@ -1,4 +1,4 @@ -#!/usr/bonsaitools/bin/perl -w +#!d:/perl/bin/perl.exe -w # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff -ru ../../code/bugzilla-2.14/duplicates.cgi ./duplicates.cgi --- ../../code/bugzilla-2.14/duplicates.cgi Thu Oct 24 12:18:05 2002 +++ ./duplicates.cgi Tue Oct 29 16:15:17 2002 @@ -1,4 +1,4 @@ -#!/usr/bonsaitools/bin/perl -w +#!d:/perl/bin/perl.exe -w # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff -ru ../../code/bugzilla-2.14/editcomponents.cgi ./editcomponents.cgi --- ../../code/bugzilla-2.14/editcomponents.cgi Thu Oct 24 12:18:05 2002 +++ ./editcomponents.cgi Tue Oct 29 16:15:17 2002 @@ -1,4 +1,4 @@ -#!/usr/bonsaitools/bin/perl -w +#!d:/perl/bin/perl.exe -w # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff -ru ../../code/bugzilla-2.14/editgroups.cgi ./editgroups.cgi --- ../../code/bugzilla-2.14/editgroups.cgi Thu Oct 24 12:18:05 2002 +++ ./editgroups.cgi Tue Oct 29 16:15:17 2002 @@ -1,4 +1,4 @@ -#!/usr/bonsaitools/bin/perl -w +#!d:/perl/bin/perl.exe -w # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff -ru ../../code/bugzilla-2.14/editkeywords.cgi ./editkeywords.cgi --- ../../code/bugzilla-2.14/editkeywords.cgi Thu Oct 24 12:18:05 2002 +++ ./editkeywords.cgi Tue Oct 29 16:15:17 2002 @@ -1,4 +1,4 @@ -#!/usr/bonsaitools/bin/perl -w +#!d:/perl/bin/perl.exe -w # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff -ru ../../code/bugzilla-2.14/editmilestones.cgi ./editmilestones.cgi --- ../../code/bugzilla-2.14/editmilestones.cgi Thu Oct 24 12:18:05 2002 +++ ./editmilestones.cgi Tue Oct 29 16:15:17 2002 @@ -1,4 +1,4 @@ -#!/usr/bonsaitools/bin/perl -w +#!d:/perl/bin/perl.exe -w # -*- Mode: perl; indent-tabs-mode: nil -*- # diff -ru ../../code/bugzilla-2.14/editparams.cgi ./editparams.cgi --- ../../code/bugzilla-2.14/editparams.cgi Thu Oct 24 12:18:05 2002 +++ ./editparams.cgi Tue Oct 29 16:15:17 2002 @@ -1,4 +1,4 @@ -#!/usr/bonsaitools/bin/perl -w +#!d:/perl/bin/perl.exe -w # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff -ru ../../code/bugzilla-2.14/editproducts.cgi ./editproducts.cgi --- ../../code/bugzilla-2.14/editproducts.cgi Thu Oct 24 12:18:05 2002 +++ ./editproducts.cgi Tue Oct 29 16:15:17 2002 @@ -1,4 +1,4 @@ -#!/usr/bonsaitools/bin/perl -w +#!d:/perl/bin/perl.exe -w # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff -ru ../../code/bugzilla-2.14/editusers.cgi ./editusers.cgi --- ../../code/bugzilla-2.14/editusers.cgi Thu Oct 24 12:18:05 2002 +++ ./editusers.cgi Tue Oct 29 16:15:17 2002 @@ -1,4 +1,4 @@ -#!/usr/bonsaitools/bin/perl -w +#!d:/perl/bin/perl.exe -w # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff -ru ../../code/bugzilla-2.14/editversions.cgi ./editversions.cgi --- ../../code/bugzilla-2.14/editversions.cgi Thu Oct 24 12:18:05 2002 +++ ./editversions.cgi Tue Oct 29 16:15:17 2002 @@ -1,4 +1,4 @@ -#!/usr/bonsaitools/bin/perl -w +#!d:/perl/bin/perl.exe -w # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff -ru ../../code/bugzilla-2.14/enter_bug.cgi ./enter_bug.cgi --- ../../code/bugzilla-2.14/enter_bug.cgi Thu Oct 24 12:18:05 2002 +++ ./enter_bug.cgi Tue Oct 29 16:15:17 2002 @@ -1,4 +1,4 @@ -#!/usr/bonsaitools/bin/perl -w +#!d:/perl/bin/perl.exe -w # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff -ru ../../code/bugzilla-2.14/globals.pl ./globals.pl --- ../../code/bugzilla-2.14/globals.pl Thu Oct 24 12:18:05 2002 +++ ./globals.pl Tue Oct 29 16:15:17 2002 @@ -87,6 +87,18 @@ # Joe Robins, 7/5/00 $::superusergroupset = "9223372036854775807"; +# Added by Francis 17 Sep 2002 process +use NTsendmail; +$ENV{"NTsendmail"}="smtp.ravenbrook.com"; +$ENV{"NTsendmail_bug"}=1; +$ENV{"NTsendmail_max_tried"}=5; +sub ntsendmail +{ + my ($to, $msg) = @_; + my $mail=new NTsendmail; + $mail->send("bugzilla-daemon\@ravenbrook.com",$to,"",$msg); +} + #sub die_with_dignity { # my ($err_msg) = @_; # print $err_msg; @@ -1243,7 +1255,6 @@ if (Param('sendmailnow')) { $sendmailparm = ''; } - if (open(SENDMAIL, "|/usr/lib/sendmail $sendmailparm -t")) { my %substs; $substs{"to"} = $name; @@ -1262,9 +1273,10 @@ my $msg = PerformSubsts(Param("voteremovedmail"), \%substs); - print SENDMAIL $msg; - close SENDMAIL; - } + + # NT sendmail functionality + ntsendmail($name, $msg); + } SendSQL("SELECT SUM(count) FROM votes WHERE bug_id = $id"); my $v = FetchOneColumn(); diff -ru ../../code/bugzilla-2.14/importxml.pl ./importxml.pl --- ../../code/bugzilla-2.14/importxml.pl Thu Oct 24 12:18:05 2002 +++ ./importxml.pl Tue Oct 29 16:15:17 2002 @@ -1,4 +1,4 @@ -#!/usr/bonsaitools/bin/perl -w +#!d:/perl/bin/perl.exe -w # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public @@ -107,11 +107,8 @@ $header.= "From: Bugzilla <$from>\n"; $header.= "Subject: $subject\n\n"; - open(SENDMAIL, - "|/usr/lib/sendmail -ODeliveryMode=background -t") || - die "Can't open sendmail"; - print SENDMAIL $header . $message . "\n"; - close SENDMAIL; + # NT sendmail functionality + ntsendmail($to, $head . $message); Log($subject . " sent to: $to"); } @@ -634,7 +631,7 @@ $log .= "\n\n\n"; } - system("./processmail", $id, $exporter); + system ("D:\\perl\\bin\\perl", "processmail.pl", $id, $exporter); } my $subject = "$bugqty bug(s) successfully moved from $urlbase to " diff -ru ../../code/bugzilla-2.14/long_list.cgi ./long_list.cgi --- ../../code/bugzilla-2.14/long_list.cgi Thu Oct 24 12:18:05 2002 +++ ./long_list.cgi Tue Oct 29 16:15:17 2002 @@ -1,4 +1,4 @@ -#!/usr/bonsaitools/bin/perl -w +#!d:/perl/bin/perl.exe -w # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff -ru ../../code/bugzilla-2.14/move.pl ./move.pl --- ../../code/bugzilla-2.14/move.pl Thu Oct 24 12:18:05 2002 +++ ./move.pl Tue Oct 29 16:15:17 2002 @@ -1,4 +1,4 @@ -#!/usr/bonsaitools/bin/perl -w +#!d:/perl/bin/perl.exe -w # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public @@ -127,7 +127,7 @@ "($id, $exporterid, now(), " . SqlQuote($comment) . ")"); print "
Bug $id moved to " . Param("move-to-url") . ".
\n";
- system("./processmail", $id, $exporter);
+ system ("D:\\perl\\bin\\perl", "processmail.pl", $id, $exporter);
}
}
print "
\n"; @@ -146,11 +146,8 @@ $msg .= "Subject: Moving bug(s) $buglist\n\n"; $msg .= $xml . "\n"; -open(SENDMAIL, - "|/usr/lib/sendmail -ODeliveryMode=background -t") || - die "Can't open sendmail"; -print SENDMAIL $msg; -close SENDMAIL; +# NT sendmail functionality +ntsendmail($to, $msg); my $logstr = "XML: bugs $buglist sent to $to"; Log($logstr); diff -ru ../../code/bugzilla-2.14/new_comment.cgi ./new_comment.cgi --- ../../code/bugzilla-2.14/new_comment.cgi Thu Oct 24 12:18:05 2002 +++ ./new_comment.cgi Tue Oct 29 16:15:17 2002 @@ -1,4 +1,4 @@ -#!/usr/bonsaitools/bin/perl +#!d:/perl/bin/perl.exe # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff -ru ../../code/bugzilla-2.14/post_bug.cgi ./post_bug.cgi --- ../../code/bugzilla-2.14/post_bug.cgi Thu Oct 24 12:18:05 2002 +++ ./post_bug.cgi Tue Oct 29 16:15:17 2002 @@ -1,4 +1,4 @@ -#!/usr/bonsaitools/bin/perl -w +#!d:/perl/bin/perl.exe -w # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public @@ -257,7 +257,7 @@ } print "
Bug $id posted\n"; -system("./processmail", $id, $::COOKIE{'Bugzilla_login'}); +system ("D:\\perl\\bin\\perl", "processmail.pl", $id, $::COOKIE{'Bugzilla_login'}); print " | Back To BUG# $id |
Duplicate notation added to bug $duplicate\n"; - system("./processmail", $duplicate, $::FORM{'who'}); + system ("D:\\perl\\bin\\perl", "processmail.pl", $duplicate, $::FORM{'who'}); print " | Go To BUG# $duplicate |
Checking for dependency changes on bug $k\n"; - system("./processmail", $k, $::FORM{'who'}); + system ("D:\\perl\\bin\\perl", "processmail.pl", $k, $::FORM{'who'}); print " | Go To BUG# $k |