Here is a small patch to allow display of the recipient in the quarantine (WebUI).
I did the same patch for the history WebUI page, but as I understand it, it is not possible to reliably extract the To field from the system log since the field is moving (Message-Id vs To in 7th position) Hope this helps, Nicolas -- Nicolas Bouthors -=- Tel : 06 20 71 62 34 -=- Fax : 01 46 87 21 99 NBi SARL -=- http://nbi.fr -=- [EMAIL PROTECTED]
? webui/dspam.cgi ? webui/cgi-bin/patch Index: webui/cgi-bin/dspam.cgi =================================================================== RCS file: /usr/local/cvsroot/dspam/webui/cgi-bin/dspam.cgi,v retrieving revision 1.28 diff -u -r1.28 dspam.cgi --- webui/cgi-bin/dspam.cgi 7 Dec 2007 00:11:52 -0000 1.28 +++ webui/cgi-bin/dspam.cgi 9 Dec 2007 12:12:42 -0000 @@ -996,6 +996,7 @@ sub by_rating { $a->{'rating'} <=> $b->{'rating'} } sub by_subject { lc($a->{'Subject'}) cmp lc($b->{'Subject'}) } sub by_from { lc($a->{'From'}) cmp lc($b->{'From'}) } +sub by_to { lc($a->{'To'}) cmp lc($b->{'To'}) } sub DisplayQuarantine { my(@alerts); @@ -1114,6 +1115,9 @@ if ($sortBy eq "From") { @headings = sort by_from @headings; } + if ($sortBy eq "To") { + @headings = sort by_to @headings; + } if ($sortBy eq "Date") { @headings = reverse @headings; } @@ -1143,6 +1147,12 @@ } else { $DATA{'SORT_SELECTOR'} .= "From"; } + $DATA{'SORT_SELECTOR'} .= "</a> | <a href=\"$CONFIG{'ME'}?user=$FORM{'user'}&template=quarantine&sortby=To&user=$FORM{'user'}\">"; + if ($sortBy eq "To") { + $DATA{'SORT_SELECTOR'} .= "<strong>To</strong>"; + } else { + $DATA{'SORT_SELECTOR'} .= "To"; + } $DATA{'SORT_SELECTOR'} .= "</a>"; @@ -1205,6 +1215,7 @@ <td class="$outclass $markclass" nowrap="true">$rating</td> <td class="$outclass" nowrap="true">$ptime</td> <td class="$outclass" nowrap="true">$row->{'From'}</td> + <td class="$outclass" nowrap="true">$row->{'To'}</td> <td class="$outclass" nowrap="true"><a href="$CONFIG{'ME'}?$url">$row->{'Subject'}</a></td> </tr> _END Index: webui/cgi-bin/templates/nav_quarantine.html =================================================================== RCS file: /usr/local/cvsroot/dspam/webui/cgi-bin/templates/nav_quarantine.html,v retrieving revision 1.4 diff -u -r1.4 nav_quarantine.html --- webui/cgi-bin/templates/nav_quarantine.html 13 May 2006 01:13:01 -0000 1.4 +++ webui/cgi-bin/templates/nav_quarantine.html 9 Dec 2007 12:12:42 -0000 @@ -56,6 +56,7 @@ <th>Rating</th> <th>Date</th> <th>From</th> + <th>To</th> <th>Subject</th> </tr> $QUARANTINE$