summaryrefslogtreecommitdiffstats
path: root/processmail
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-01-24 14:41:36 +0100
committerterry%mozilla.org <>2000-01-24 14:41:36 +0100
commitca924726d8e692458088267aa5fb36848654fabd (patch)
tree956427344efa23fe3bd2cc4c50eae36f08509550 /processmail
parenta240c91d3276266fb7a43dcbf3158f91494ff313 (diff)
downloadbugzilla-ca924726d8e692458088267aa5fb36848654fabd.tar.gz
bugzilla-ca924726d8e692458088267aa5fb36848654fabd.tar.xz
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.
Diffstat (limited to 'processmail')
-rwxr-xr-xprocessmail9
1 files changed, 8 insertions, 1 deletions
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}) {