Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
2d2c85f6
Commit
2d2c85f6
authored
Aug 07, 2015
by
Gervase Markham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1191255 - Remove requirement to specify SMTP server during installation on…
Bug 1191255 - Remove requirement to specify SMTP server during installation on Windows. r=LpSolit, a=simon
parent
29ee9d36
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
24 deletions
+3
-24
Config.pm
Bugzilla/Config.pm
+0
-21
Common.pm
Bugzilla/Config/Common.pm
+3
-1
checksetup.pl
checksetup.pl
+0
-2
No files found.
Bugzilla/Config.pm
View file @
2d2c85f6
...
...
@@ -266,27 +266,6 @@ sub update_params {
$op_file
->
close
;
}
if
(
ON_WINDOWS
&&
!-
e
SENDMAIL_EXE
&&
$param
->
{
'mail_delivery_method'
}
eq
'Sendmail'
)
{
my
$smtp
=
$answer
->
{
'SMTP_SERVER'
};
if
(
!
$smtp
)
{
print
"\nBugzilla requires an SMTP server to function on"
,
" Windows.\nPlease enter your SMTP server's hostname: "
;
$smtp
=
<
STDIN
>
;
chomp
$smtp
;
if
(
$smtp
)
{
$param
->
{
'smtpserver'
}
=
$smtp
;
}
else
{
print
"\nWarning: No SMTP Server provided, defaulting to"
,
" localhost\n"
;
}
}
$param
->
{
'mail_delivery_method'
}
=
'SMTP'
;
}
write_params
(
$param
);
if
(
-
e
$old_file
)
{
...
...
Bugzilla/Config/Common.pm
View file @
2d2c85f6
...
...
@@ -299,7 +299,7 @@ sub check_mail_delivery_method {
my
$check
=
check_multi
(
@_
);
return
$check
if
$check
;
my
$mailer
=
shift
;
if
(
$mailer
eq
'
s
endmail'
and
ON_WINDOWS
)
{
if
(
$mailer
eq
'
S
endmail'
and
ON_WINDOWS
)
{
# look for sendmail.exe
return
"Failed to locate "
.
SENDMAIL_EXE
unless
-
e
SENDMAIL_EXE
;
...
...
@@ -346,6 +346,8 @@ sub check_smtp_server {
my
$host
=
shift
;
my
$port
;
return
''
unless
$host
;
if
(
$host
=~
/:/
)
{
(
$host
,
$port
)
=
split
(
/:/
,
$host
,
2
);
unless
(
$port
&&
detaint_natural
(
$port
))
{
...
...
checksetup.pl
View file @
2d2c85f6
...
...
@@ -458,8 +458,6 @@ The format of that file is as follows:
$answer{'ADMIN_PASSWORD'} = 'fooey';
$answer{'ADMIN_REALNAME'} = 'Joel Peshkin';
$answer{'SMTP_SERVER'} = 'mail.mydomain.net';
$answer{'NO_PAUSE'} = 1
C<NO_PAUSE> means "never stop and prompt the user to hit Enter to continue,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment