summaryrefslogtreecommitdiffstats
path: root/Bugzilla/BugMail.pm
diff options
context:
space:
mode:
authorwurblzap%gmail.com <>2007-09-05 05:01:53 +0200
committerwurblzap%gmail.com <>2007-09-05 05:01:53 +0200
commite043bc7c21f6d206a78bcd6ba9fc5ba8bb2d7d2d (patch)
tree90b0294322ae17aeb7d60bbe41f4436aa48d72e8 /Bugzilla/BugMail.pm
parent615414f5ffb167e4a3871bee9858a2c95f31723d (diff)
downloadbugzilla-e043bc7c21f6d206a78bcd6ba9fc5ba8bb2d7d2d.tar.gz
bugzilla-e043bc7c21f6d206a78bcd6ba9fc5ba8bb2d7d2d.tar.xz
Bug 394933 – “neworchanged” of bugmail could be localizable more easily.
Patch by Marc Schumann <wurblzap@gmail.com>; r=mkanat; a=mkanat
Diffstat (limited to 'Bugzilla/BugMail.pm')
-rw-r--r--Bugzilla/BugMail.pm13
1 files changed, 6 insertions, 7 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm
index 539a481ed..d29ffaf1e 100644
--- a/Bugzilla/BugMail.pm
+++ b/Bugzilla/BugMail.pm
@@ -500,7 +500,7 @@ sub Send {
\@diffparts,
$comments{$lang},
$anyprivate,
- $start,
+ ! $start,
$id,
exists $watching{$user_id} ?
$watching{$user_id} : undef);
@@ -522,8 +522,8 @@ sub Send {
}
sub sendMail {
- my ($user, $hlRef, $relRef, $valueRef, $dmhRef, $fdRef,
- $diffRef, $newcomments, $anyprivate, $start,
+ my ($user, $hlRef, $relRef, $valueRef, $dmhRef, $fdRef,
+ $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'} : "",