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
54c992f7
Commit
54c992f7
authored
Jun 16, 2007
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 384501: If you have a port name in the urlbase, SMTP may not work
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent
8cb6f0fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Mailer.pm
Bugzilla/Mailer.pm
+1
-1
No files found.
Bugzilla/Mailer.pm
View file @
54c992f7
...
@@ -87,7 +87,7 @@ sub MessageToMTA {
...
@@ -87,7 +87,7 @@ sub MessageToMTA {
# Sendmail will automatically append our hostname to the From
# Sendmail will automatically append our hostname to the From
# address, but other mailers won't.
# address, but other mailers won't.
my
$urlbase
=
Bugzilla
->
params
->
{
'urlbase'
};
my
$urlbase
=
Bugzilla
->
params
->
{
'urlbase'
};
$urlbase
=~
m
|
//
([
^
/]+)/
?
|
;
$urlbase
=~
m
|
//
([
^
:
/]+)[:/
]
?
|
;
$hostname
=
$1
;
$hostname
=
$1
;
$from
.=
"\@$hostname"
if
$from
!~
/@/
;
$from
.=
"\@$hostname"
if
$from
!~
/@/
;
$email
->
header_set
(
'From'
,
$from
);
$email
->
header_set
(
'From'
,
$from
);
...
...
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