]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fixed bug 71600: mail would be sent about a given bug iff all flags for stuff changed...
authordmose%mozilla.org <>
Mon, 12 Mar 2001 04:08:28 +0000 (04:08 +0000)
committerdmose%mozilla.org <>
Mon, 12 Mar 2001 04:08:28 +0000 (04:08 +0000)
processmail

index c1665add75c0d1d8ee5e7f7d1f8fddbfca0ddce6..acd93315c80933e32319e856525303a6590bb8ed 100755 (executable)
@@ -785,6 +785,8 @@ sub filterEmailGroup ($$$) {
 
             push(@filteredList,$person);            
 
+            my $detectedOn = 0;
+            
             foreach my $attribute (@emailAttributes) {
 
                 my $matchName = 'email' . $emailGroup . $attribute;
@@ -795,14 +797,23 @@ sub filterEmailGroup ($$$) {
                         next; 
                     }
 
-                    if ( $flagName eq $matchName  && $flagValue ne 'on') {
-                        pop(@filteredList);
+                    if ($flagName eq $matchName){
+                        if ($flagValue eq 'on') {
+                            $detectedOn = 1;
+                        }
                     }
 
                 } # for each userFlag
 
             } # for each email attribute
 
+            # if the current flag hasn't been detected on at least once, 
+            # this person gets filtered from this group.
+            #
+            if (! $detectedOn) {
+                pop(@filteredList);
+            }
+
             # check to see if the person was removed from this email 
             # group.