This patch adds the ability to easily select multiple rows on the quarantine and history pages. It implements the common local GUI convention of selecting one row, holding shift, and selecting a second row, and having the application select all the intermediate rows as well. This implementation has been tested in Firefox, Epiphany, and Konqueror. Author: Scott Worley diff -Naur dspam-3.8.0.orig/webui/cgi-bin/dspam.cgi dspam-3.8.0/webui/cgi-bin/dspam.cgi --- dspam-3.8.0.orig/webui/cgi-bin/dspam.cgi 2006-06-01 19:14:14.000000000 +0000 +++ dspam-3.8.0/webui/cgi-bin/dspam.cgi 2008-01-20 23:11:12.000000000 +0000 @@ -289,7 +289,9 @@ @buffer = splice(@buffer, $begin,$CONFIG{'HISTORY_PER_PAGE'}); my $retrain_checked_msg_no = 0; + my $counter = 0; while ($rec = pop@buffer) { + $counter++; my($time, $class, $from, $signature, $subject, $info, $messageid); $time = $rec->{'time'}; @@ -411,7 +413,7 @@ $cllabel - + $retrain $ctime $from @@ -1103,9 +1105,11 @@ $DATA{'SORT_SELECTOR'} .= ""; - my($row, $rowclass); + my($row, $rowclass, $counter); $rowclass = "rowEven"; + $counter = 0; for $row (@headings) { + $counter++; my($rating, $url, $markclass, $outclass); $rating = sprintf("%3.0f%%", $row->{'rating'} * 100.0); if ($row->{'rating'} > 0.8) { @@ -1158,7 +1162,7 @@ $DATA{'QUARANTINE'} .= <<_END; - + $rating $ptime $row->{'From'} diff -Naur dspam-3.8.0.orig/webui/cgi-bin/templates/nav_history.html dspam-3.8.0/webui/cgi-bin/templates/nav_history.html --- dspam-3.8.0.orig/webui/cgi-bin/templates/nav_history.html 2006-05-13 01:13:01.000000000 +0000 +++ dspam-3.8.0/webui/cgi-bin/templates/nav_history.html 2008-01-20 23:05:32.000000000 +0000 @@ -1,6 +1,7 @@ DSPAM v3 Control Center +