From: cyeh%bluemartini.com <> Date: Thu, 29 Mar 2001 07:43:39 +0000 (+0000) Subject: fix for 71798: bugmail not sent when moving from cc to assigned fields X-Git-Tag: bugzilla-2.12~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bdc68f511287c4ef552ede9de2c6f56888b402a;p=thirdparty%2Fbugzilla.git fix for 71798: bugmail not sent when moving from cc to assigned fields checked in patch based on patch submitted by jake@acutex.net --- diff --git a/processmail b/processmail index a51a076670..88c633140d 100755 --- a/processmail +++ b/processmail @@ -657,7 +657,6 @@ sub getEmailAttributes ($@) { my ($commentField,@fieldDiffs) = @_; my (@flags,@uniqueFlags,%alreadySeen) = (); - my $Status = 0; foreach my $ref (@fieldDiffs) { my ($who, $fieldName, $when, $old, $new) = (@$ref); @@ -671,7 +670,6 @@ sub getEmailAttributes ($@) { if ($new eq 'RESOLVED' || $new eq 'VERIFIED') { push (@flags, 'Resolved'); } - $Status = 1; } elsif ( $fieldName eq 'Severity' || $fieldName eq 'Status' || $fieldName eq 'Priority' ) { @@ -686,7 +684,7 @@ sub getEmailAttributes ($@) { if ( $commentField =~ /Created an attachment \(/ ) { push (@flags, 'Attachments'); } - elsif ( $commentField ne '' && !($Status)) { + elsif ( ($commentField ne '') && (scalar(@flags) == 1) && ($flags[0] eq 'Resolved')) { push (@flags, 'Comments'); }