diff -ru D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/Bug.pm D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/Bug.pm --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/Bug.pm 2002-10-24 12:52:16.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/Bug.pm 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/CGI.pl D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/CGI.pl --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/CGI.pl 2002-10-24 12:52:16.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/CGI.pl 2002-10-25 14:27:29.000000000 +0100 @@ -732,9 +732,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"; @@ -1185,7 +1184,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
\n"; } diff -ru D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/Token.pm D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/Token.pm --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/Token.pm 2002-10-24 12:52:16.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/Token.pm 2002-10-25 14:29:06.000000000 +0100 @@ -102,9 +102,7 @@ my $emailsuffix = &::Param('emailsuffix'); $token = &::url_quote($token); - open SENDMAIL, "|/usr/lib/sendmail -t"; - - print SENDMAIL qq|From: bugzilla-daemon + my $msg = qq|From: bugzilla-daemon To: $emailaddress$emailsuffix Subject: Bugzilla Change Password Request @@ -118,7 +116,9 @@ ${urlbase}token.cgi?a=cxlpw&t=$token |; - close SENDMAIL; + + # NT sendmail functionality + ::ntsendmail($emailaddress.$emailsuffix,$msg); } sub Cancel { @@ -145,8 +145,7 @@ my $username = $realname ? $realname . " <" . $loginname . ">" : $loginname; # Notify the user via email about the cancellation. - open SENDMAIL, "|/usr/lib/sendmail -t"; - print SENDMAIL qq|From: bugzilla-daemon + my $msg = qq|From: bugzilla-daemon To: $username Subject: "$tokentype" token cancelled @@ -163,7 +162,9 @@ Cancelled Because: $cancelaction |; - close SENDMAIL; + + # NT sendmail functionality + ::ntsendmail($username,$msg); # Delete the token from the database. &::SendSQL("LOCK TABLES tokens WRITE"); diff -ru D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/buglist.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/buglist.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/buglist.cgi 2002-10-24 12:52:16.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/buglist.cgi 2002-09-17 20:08:09.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/changepassword.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/changepassword.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/changepassword.cgi 2002-10-24 12:52:16.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/changepassword.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/checksetup.pl D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/checksetup.pl --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/checksetup.pl 2002-10-24 12:52:17.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/checksetup.pl 2002-10-25 14:30:40.000000000 +0100 @@ -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 @@ -569,7 +569,7 @@ open HTACCESS, ">.htaccess"; print HTACCESS <<'END'; # don't allow people to retrieve non-cgi executable files or our private data - + deny from all END @@ -660,7 +660,7 @@ # # These are the files which need to be marked executable -my @executable_files = ('processmail', 'whineatnews.pl', 'collectstats.pl', +my @executable_files = ('processmail.pl', 'whineatnews.pl', 'collectstats.pl', 'checksetup.pl', 'syncshadowdb', 'importxml.pl'); # tell me if a file is executable. All CGI files and those in @executable_files @@ -703,7 +703,8 @@ if ($my_webservergroup) { # Funny! getgrname returns the GID if fed with NAME ... - my $webservergid = getgrnam($my_webservergroup); + # Removed getgrnam (to make it work on Windows NT). + my $webservergid = $my_webservergroup; # chown needs to be called with a valid uid, not 0. $< returns the # caller's uid. Maybe there should be a $bugzillauid, and call with that # userid. diff -ru D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/colchange.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/colchange.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/colchange.cgi 2002-10-24 12:52:17.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/colchange.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/collectstats.pl D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/collectstats.pl --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/collectstats.pl 2002-10-24 12:52:17.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/collectstats.pl 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/createaccount.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/createaccount.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/createaccount.cgi 2002-10-24 12:52:17.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/createaccount.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/createattachment.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/createattachment.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/createattachment.cgi 2002-10-24 12:52:17.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/createattachment.cgi 2002-09-18 18:58:19.000000000 +0100 @@ -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 @@ -24,6 +24,8 @@ use diagnostics; use strict; +binmode(STDIN); +binmode(STDOUT); require "CGI.pl"; use vars %::COOKIE, %::FILENAME; @@ -107,7 +109,7 @@ print '

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
\n"; print "

Create another attachment to bug $id

\n"; } diff -ru D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/describecomponents.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/describecomponents.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/describecomponents.cgi 2002-10-24 12:52:18.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/describecomponents.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/describekeywords.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/describekeywords.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/describekeywords.cgi 2002-10-24 12:52:18.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/describekeywords.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/doeditparams.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/doeditparams.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/doeditparams.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/doeditparams.cgi 2002-09-19 17:54:21.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/doeditvotes.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/doeditvotes.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/doeditvotes.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/doeditvotes.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/duplicates.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/duplicates.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/duplicates.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/duplicates.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/editcomponents.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/editcomponents.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/editcomponents.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/editcomponents.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/editgroups.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/editgroups.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/editgroups.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/editgroups.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/editkeywords.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/editkeywords.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/editkeywords.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/editkeywords.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/editmilestones.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/editmilestones.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/editmilestones.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/editmilestones.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -1,4 +1,4 @@ -#!/usr/bonsaitools/bin/perl -w +#!d:/perl/bin/perl.exe -w # -*- Mode: perl; indent-tabs-mode: nil -*- # diff -ru D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/editparams.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/editparams.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/editparams.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/editparams.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/editproducts.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/editproducts.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/editproducts.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/editproducts.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/editusers.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/editusers.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/editusers.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/editusers.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/editversions.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/editversions.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/editversions.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/editversions.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/enter_bug.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/enter_bug.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/enter_bug.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/enter_bug.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/globals.pl D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/globals.pl --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/globals.pl 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/globals.pl 2002-10-25 14:34:30.000000000 +0100 @@ -88,6 +88,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; @@ -1270,7 +1282,6 @@ if (Param('sendmailnow')) { $sendmailparm = ''; } - if (open(SENDMAIL, "|/usr/lib/sendmail $sendmailparm -t")) { my %substs; $substs{"to"} = $name; @@ -1289,9 +1300,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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/importxml.pl D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/importxml.pl --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/importxml.pl 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/importxml.pl 2002-10-25 14:34:41.000000000 +0100 @@ -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"); } @@ -630,7 +627,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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/long_list.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/long_list.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/long_list.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/long_list.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/move.pl D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/move.pl --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/move.pl 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/move.pl 2002-10-25 14:35:04.000000000 +0100 @@ -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 @@ -123,7 +123,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"; @@ -142,11 +142,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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/new_comment.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/new_comment.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/new_comment.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/new_comment.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/post_bug.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/post_bug.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/post_bug.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/post_bug.cgi 2002-09-17 23:24:24.000000000 +0100 @@ -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 @@ -253,7 +253,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
\n"; print "
Attach a file to this bug\n"; diff -ru D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/process_bug.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/process_bug.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/process_bug.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/process_bug.cgi 2002-10-25 14:35:47.000000000 +0100 @@ -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 @@ -1366,7 +1366,7 @@ push @ARGLIST, ( "-forceqacontact", $origQaContact); } push @ARGLIST, ($id, $::COOKIE{'Bugzilla_login'}); - system ("./processmail",@ARGLIST); + system ("D:\\perl\\bin\\perl", "processmail.pl",@ARGLIST); print "Back To BUG# $id\n"; @@ -1390,13 +1390,13 @@ } SendSQL("INSERT INTO duplicates VALUES ($duplicate, $::FORM{'id'})"); print "

Duplicate notation added to bug $duplicate

\n"; - system("./processmail", $duplicate, $::COOKIE{'Bugzilla_login'}); + system ("D:\\perl\\bin\\perl", "processmail.pl", $duplicate, $::COOKIE{'Bugzilla_login'}); print "
Go To BUG# $duplicate
\n"; } foreach my $k (keys(%dependencychanged)) { print "

Checking for dependency changes on bug $k

\n"; - system("./processmail", $k, $::COOKIE{'Bugzilla_login'}); + system ("D:\\perl\\bin\\perl", "processmail.pl", $k, $::COOKIE{'Bugzilla_login'}); print "
Go To BUG# $k
\n"; } diff -ru D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/processmail D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/processmail --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/processmail 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/processmail 2002-10-25 14:37:28.000000000 +0100 @@ -1,4 +1,4 @@ -#!/usr/bonsaitools/bin/perl -wT +#!d:/perl/bin/perl.exe -w T # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public @@ -742,11 +742,9 @@ } if ($enableSendMail == 1) { - open(SENDMAIL, "|/usr/lib/sendmail $sendmailparam -t") || - die "Can't open sendmail"; - - print SENDMAIL trim($msg) . "\n"; - close SENDMAIL; + # NT sendmail functionality + ntsendmail($person, $msg); + } push(@sentlist, $person); return 1; diff -ru D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/query.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/query.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/query.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/query.cgi 2002-10-25 14:38:17.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/queryhelp.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/queryhelp.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/queryhelp.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/queryhelp.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/quips.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/quips.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/quips.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/quips.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/relogin.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/relogin.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/relogin.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/relogin.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/reports.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/reports.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/reports.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/reports.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/sanitycheck.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/sanitycheck.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/sanitycheck.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/sanitycheck.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/show_activity.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/show_activity.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/show_activity.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/show_activity.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/show_bug.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/show_bug.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/show_bug.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/show_bug.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/showattachment.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/showattachment.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/showattachment.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/showattachment.cgi 2002-09-18 18:58:13.000000000 +0100 @@ -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 @@ -24,6 +24,8 @@ use diagnostics; use strict; +binmode(STDIN); +binmode(STDOUT); require "CGI.pl"; ConnectToDatabase(); diff -ru D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/showdependencygraph.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/showdependencygraph.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/showdependencygraph.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/showdependencygraph.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/showdependencytree.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/showdependencytree.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/showdependencytree.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/showdependencytree.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/showvotes.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/showvotes.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/showvotes.cgi 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/showvotes.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/syncshadowdb D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/syncshadowdb --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/syncshadowdb 2002-10-24 12:52:21.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/syncshadowdb 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/token.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/token.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/token.cgi 2002-10-24 12:52:22.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/token.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/userprefs.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/userprefs.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/userprefs.cgi 2002-10-24 12:52:22.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/userprefs.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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 D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/whineatnews.pl D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/whineatnews.pl --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/whineatnews.pl 2002-10-24 12:52:22.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/whineatnews.pl 2002-10-25 14:39:21.000000000 +0100 @@ -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 @@ -62,8 +62,7 @@ foreach my $i (@{$bugs{$email}}) { $msg .= " ${urlbase}show_bug.cgi?id=$i\n" } - open(SENDMAIL, "|/usr/lib/sendmail -t") || die "Can't open sendmail"; - print SENDMAIL $msg; - close SENDMAIL; + # NT sendmail functionality + ntsendmail($email, $msg); print "$email " . join(" ", @{$bugs{$email}}) . "\n"; } diff -ru D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/xml.cgi D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/xml.cgi --- D:/home/nb/project/p4dti/version/1.5/code/bugzilla-2.14.3/xml.cgi 2002-10-24 12:52:22.000000000 +0100 +++ D:\Apache Group\Apache\htdocs\bugzilla-2.14.3/xml.cgi 2002-09-17 20:08:10.000000000 +0100 @@ -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