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
e043bc7c
Commit
e043bc7c
authored
Sep 05, 2007
by
wurblzap%gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 394933 â âneworchangedâ of bugmail could be localizable more easily.
Patch by Marc Schumann <wurblzap@gmail.com>; r=mkanat; a=mkanat
parent
615414f5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
BugMail.pm
Bugzilla/BugMail.pm
+5
-6
newchangedmail.txt.tmpl
template/en/default/email/newchangedmail.txt.tmpl
+1
-1
No files found.
Bugzilla/BugMail.pm
View file @
e043bc7c
...
...
@@ -500,7 +500,7 @@ sub Send {
\
@diffparts
,
$comments
{
$lang
},
$anyprivate
,
$start
,
!
$start
,
$id
,
exists
$watching
{
$user_id
}
?
$watching
{
$user_id
}
:
undef
);
...
...
@@ -523,7 +523,7 @@ sub Send {
sub
sendMail
{
my
(
$user
,
$hlRef
,
$relRef
,
$valueRef
,
$dmhRef
,
$fdRef
,
$diffRef
,
$newcomments
,
$anyprivate
,
$
start
,
$diffRef
,
$newcomments
,
$anyprivate
,
$
isnew
,
$id
,
$watchingRef
)
=
@_
;
my
%
values
=
%
$valueRef
;
...
...
@@ -590,8 +590,6 @@ sub sendMail {
return
0
;
}
my
$isnew
=
!
$start
;
# If an attachment was created, then add an URL. (Note: the 'g'lobal
# replace should work with comments with multiple attachments.)
...
...
@@ -629,13 +627,14 @@ sub sendMail {
my
$threadingmarker
;
if
(
$isnew
)
{
$threadingmarker
=
"Message-ID: <bug-$id-"
.
$user
->
id
.
"$sitespec>"
;
}
else
{
}
else
{
$threadingmarker
=
"In-Reply-To: <bug-$id-"
.
$user
->
id
.
"$sitespec>"
;
}
my
$vars
=
{
neworchanged
=>
$isnew
?
'New: '
:
''
,
isnew
=>
$isnew
,
to
=>
$user
->
email
,
bugid
=>
$id
,
alias
=>
Bugzilla
->
params
->
{
'usebugaliases'
}
?
$values
{
'alias'
}
:
""
,
...
...
template/en/default/email/newchangedmail.txt.tmpl
View file @
e043bc7c
...
...
@@ -21,7 +21,7 @@
[% PROCESS "global/variables.none.tmpl" %]
From: [% Param('mailfrom') %]
To: [% to %]
Subject: [[% terms.Bug %] [%+ bugid %]] [%
neworchanged
%][%+ summary %]
Subject: [[% terms.Bug %] [%+ bugid %]] [%
'New: ' IF isnew
%][%+ summary %]
X-Bugzilla-Reason: [% reasonsheader %]
X-Bugzilla-Type: newchanged
X-Bugzilla-Watch-Reason: [% reasonswatchheader %]
...
...
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