summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);