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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
ce3089f5
Commit
ce3089f5
authored
Jan 28, 2008
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 411544: Subject lines were still being improperly line-broken in emails.
Patch By Jeff Lawson <jlawson-mozilla@bovine.net> r=mkanat, a=mkanat
parent
3e29f04a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Mailer.pm
Bugzilla/Mailer.pm
+5
-2
No files found.
Bugzilla/Mailer.pm
View file @
ce3089f5
...
...
@@ -44,6 +44,7 @@ use Bugzilla::Util;
use
Date::
Format
qw(time2str)
;
use
Encode
qw(encode)
;
use
Encode::MIME::
Header
;
use
Email::
Address
;
use
Email::
MIME
;
# Loading this gives us encoding_set.
...
...
@@ -78,9 +79,11 @@ sub MessageToMTA {
if
(
Bugzilla
->
params
->
{
'utf8'
}
&&
!
utf8::
is_utf8
(
$value
))
{
utf8::
decode
(
$value
);
}
# avoid excessive line wrapping done by Encode.
local
$
Encode::
Encoding
{
'MIME-Q'
}
->
{
'bpl'
}
=
998
;
my
$encoded
=
encode
(
'MIME-Q'
,
$value
);
# Encode adds unnecessary line breaks, with two spaces after each.
$encoded
=~
s/\n / /g
;
$email
->
header_set
(
$header
,
$encoded
);
}
}
...
...
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