From ca924726d8e692458088267aa5fb36848654fabd Mon Sep 17 00:00:00 2001 From: "terry%mozilla.org" <> Date: Mon, 24 Jan 2000 13:41:36 +0000 Subject: New email code wasn't sending to people who had voted for a bug. Added "My votes" link to footer. Other minor voting-related fixes. --- processmail | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'processmail') diff --git a/processmail b/processmail index 7441232ef..d81410708 100755 --- a/processmail +++ b/processmail @@ -357,7 +357,13 @@ sub NewProcessOneBug { } my ($start, $end) = (@row); $values{'cc'} = ShowCcList($id); - + + my @voterlist; + SendSQL("SELECT profiles.login_name FROM votes, profiles " . + "WHERE votes.bug_id = $id AND profiles.userid = votes.who"); + while (MoreSQLData()) { + push(@voterlist, FetchOneColumn()); + } $values{'assigned_to'} = DBID_to_name($values{'assigned_to'}); $values{'reporter'} = DBID_to_name($values{'reporter'}); @@ -453,6 +459,7 @@ sub NewProcessOneBug { my $count = 0; for my $person ($values{'assigned_to'}, $values{'reporter'}, split(/,/, $values{'cc'}), + @voterlist, @forcecc) { $count++; if ($seen{$person}) { -- cgit v1.2.3-24-g4f1b