summaryrefslogtreecommitdiffstats
path: root/processmail
diff options
context:
space:
mode:
authordave%intrec.com <>2001-03-16 16:49:37 +0100
committerdave%intrec.com <>2001-03-16 16:49:37 +0100
commit4bdd5de52152184212d5be6bdc371761d5d659f4 (patch)
tree9bc1ae85f7b3bf1a34c55241f2d00390b45d84e5 /processmail
parentb60994df8219ac2587edb66c97aa0e65ec5d2c5a (diff)
downloadbugzilla-4bdd5de52152184212d5be6bdc371761d5d659f4.tar.gz
bugzilla-4bdd5de52152184212d5be6bdc371761d5d659f4.tar.xz
Re-fix for bug 71550: all watchers are now accounted for instead of only the first watcher found.
Diffstat (limited to 'processmail')
-rwxr-xr-xprocessmail8
1 files changed, 5 insertions, 3 deletions
diff --git a/processmail b/processmail
index dbd419e41..a51a07667 100755
--- a/processmail
+++ b/processmail
@@ -732,9 +732,11 @@ sub filterEmailGroup ($$$) {
foreach my $person(@emailList) {
my $personId = DBname_to_id($person);
SendSQL("SELECT watcher FROM watch WHERE watched = $personId");
- my $watcher = FetchSQLData();
- if ($watcher) {
- push (@watchers, DBID_to_name($watcher));
+ while(MoreSQLData()) {
+ my ($watcher) = FetchSQLData();
+ if ($watcher) {
+ push (@watchers, DBID_to_name($watcher));
+ }
}
}
push(@emailList, @watchers);