diff options
author | dmose%mozilla.org <> | 2001-03-12 05:08:28 +0100 |
---|---|---|
committer | dmose%mozilla.org <> | 2001-03-12 05:08:28 +0100 |
commit | 771e38ec238c4814bfbe756d80e991eda60f294b (patch) | |
tree | fa971cc2297bfb3b1b72dfdd93e5c8d707b14396 /processmail | |
parent | 41b4d957566d1e66153465b912a27318342a6a0a (diff) | |
download | bugzilla-771e38ec238c4814bfbe756d80e991eda60f294b.tar.gz bugzilla-771e38ec238c4814bfbe756d80e991eda60f294b.tar.xz |
Fixed bug 71600: mail would be sent about a given bug iff all flags for stuff changed in a given group were set. Should have sent mail if any flags for stuff changed in a given group were set. r=dave@intrec.com,endico@mozilla.org
Diffstat (limited to 'processmail')
-rwxr-xr-x | processmail | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/processmail b/processmail index c1665add7..acd93315c 100755 --- a/processmail +++ b/processmail @@ -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. |