\@diffparts,
$comments{$lang},
$anyprivate,
- $start,
+ ! $start,
$id,
exists $watching{$user_id} ?
$watching{$user_id} : undef);
}
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;
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.)
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'} : "",
[% 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 %]