From 4bdd5de52152184212d5be6bdc371761d5d659f4 Mon Sep 17 00:00:00 2001 From: "dave%intrec.com" <> Date: Fri, 16 Mar 2001 15:49:37 +0000 Subject: Re-fix for bug 71550: all watchers are now accounted for instead of only the first watcher found. --- processmail | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'processmail') 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); -- cgit v1.2.3-24-g4f1b