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
09e9e8b9
Commit
09e9e8b9
authored
Apr 09, 2008
by
wurblzap%gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 311563 â Make whining permit utf8 in whining reports.
Patch by Marc Schumann <wurblzap@gmail.com>; r=mkanat; a=LpSolit
parent
1f2af64c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
11 deletions
+21
-11
Requirements.pm
Bugzilla/Install/Requirements.pm
+5
-1
Mailer.pm
Bugzilla/Mailer.pm
+16
-10
No files found.
Bugzilla/Install/Requirements.pm
View file @
09e9e8b9
...
@@ -89,7 +89,11 @@ sub REQUIRED_MODULES {
...
@@ -89,7 +89,11 @@ sub REQUIRED_MODULES {
version
=>
ON_WINDOWS
?
'2.16'
:
'2.00'
version
=>
ON_WINDOWS
?
'2.16'
:
'2.00'
},
},
{
{
# This will pull in Email::MIME for us, also.
package
=>
'Email-MIME'
,
module
=>
'Email::MIME'
,
version
=>
'1.861'
},
{
package
=>
'Email-MIME-Modifier'
,
package
=>
'Email-MIME-Modifier'
,
module
=>
'Email::MIME::Modifier'
,
module
=>
'Email::MIME::Modifier'
,
version
=>
0
version
=>
0
...
...
Bugzilla/Mailer.pm
View file @
09e9e8b9
...
@@ -57,18 +57,24 @@ sub MessageToMTA {
...
@@ -57,18 +57,24 @@ sub MessageToMTA {
return
if
$method
eq
'None'
;
return
if
$method
eq
'None'
;
my
$email
=
ref
(
$msg
)
?
$msg
:
Email::
MIME
->
new
(
$msg
);
my
$email
=
ref
(
$msg
)
?
$msg
:
Email::
MIME
->
new
(
$msg
);
foreach
my
$part
(
$email
->
parts
)
{
$email
->
walk_parts
(
sub
{
if
(
Bugzilla
->
params
->
{
'utf8'
})
{
my
(
$part
)
=
@_
;
$part
->
charset_set
(
'UTF-8'
);
return
if
$part
->
parts
>
1
;
# Top-level
# encoding_set works only with bytes, not with utf8 strings.
my
$content_type
=
$part
->
content_type
||
''
;
my
$raw
=
$part
->
body_raw
;
if
(
$content_type
!~
/;/
)
{
if
(
utf8::
is_utf8
(
$raw
))
{
my
$body
=
$part
->
body
;
utf8::
encode
(
$raw
);
if
(
Bugzilla
->
params
->
{
'utf8'
})
{
$part
->
body_set
(
$raw
);
$part
->
charset_set
(
'UTF-8'
);
# encoding_set works only with bytes, not with utf8 strings.
my
$raw
=
$part
->
body_raw
;
if
(
utf8::
is_utf8
(
$raw
))
{
utf8::
encode
(
$raw
);
$part
->
body_set
(
$raw
);
}
}
}
$part
->
encoding_set
(
'quoted-printable'
)
if
!
is_7bit_clean
(
$body
);
}
}
$part
->
encoding_set
(
'quoted-printable'
)
if
!
is_7bit_clean
(
$part
->
body
);
});
}
# MIME-Version must be set otherwise some mailsystems ignore the charset
# MIME-Version must be set otherwise some mailsystems ignore the charset
$email
->
header_set
(
'MIME-Version'
,
'1.0'
)
if
!
$email
->
header
(
'MIME-Version'
);
$email
->
header_set
(
'MIME-Version'
,
'1.0'
)
if
!
$email
->
header
(
'MIME-Version'
);
...
...
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