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
53cb9510
Commit
53cb9510
authored
Mar 08, 2005
by
travis%sedsystems.ca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 280778 : remove sendmail and qmail delivery methods on windows
Patch by byron jones (glob) <bugzilla@glob.com.au> r=jake a=justdave
parent
148bdbba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
checksetup.pl
checksetup.pl
+20
-0
defparams.pl
defparams.pl
+3
-1
No files found.
checksetup.pl
View file @
53cb9510
...
...
@@ -112,6 +112,8 @@
# $answer{'ADMIN_PASSWORD'} = 'fooey';
# $answer{'ADMIN_REALNAME'} = 'Joel Peshkin';
#
# $answer{'SMTP_SERVER'} = 'mail.mydomain.net';
#
#
# Note: Only information that supersedes defaults from LocalVar()
# function calls needs to be specified in this file.
...
...
@@ -1280,6 +1282,24 @@ if (@oldparams) {
close
PARAMFILE
;
}
# Set maildeliverymethod to SMTP and prompt for SMTP server
# if running on Windows and set to sendmail (Mail::Mailer doesn't
# support sendmail on Windows)
if
(
$^O
=~
/MSWin32/i
&&
Param
(
'maildeliverymethod'
)
eq
'sendmail'
)
{
print
"\nBugzilla requires an SMTP server to function on Windows.\n"
.
"Please enter your SMTP server's hostname: "
;
my
$smtp
=
$answer
{
'SMTP_SERVER'
}
||
(
$silent
&&
die
(
"cant preload SMTP_SERVER"
))
||
<
STDIN
>
;
chomp
$smtp
;
if
(
!
$smtp
)
{
print
"\nWarning: No SMTP Server provided, defaulting to localhost\n"
;
$smtp
=
'localhost'
;
}
SetParam
(
'maildeliverymethod'
,
'smtp'
);
SetParam
(
'smtpserver'
,
$smtp
);
}
# WriteParams will only write out still-valid entries
WriteParams
();
...
...
defparams.pl
View file @
53cb9510
...
...
@@ -686,7 +686,9 @@ sub find_languages {
'is useful for debugging (for more information see the '
.
'Mail::Mailer manual)'
,
type
=>
's'
,
choices
=>
[
'sendmail'
,
'smtp'
,
'qmail'
,
'testfile'
],
choices
=>
$^O
=~
/MSWin32/i
?
[
'smtp'
,
'testfile'
]
:
[
'sendmail'
,
'smtp'
,
'qmail'
,
'testfile'
],
default
=>
'sendmail'
,
checker
=>
\&
check_multi
},
...
...
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