katsumi liquer wrote:
when I go through the WEBUI to the Quarantine tab and
click on a message, it tells me that it is showing me the body of the
message, but is just a big empty text box.
Known problem (if you had checked the list archives, you might have
found this out). The attached patch resolves it (also fixes the case
where no spam were received during a given 24 hour period).
John
--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5748
Index: webui/cgi-bin/dspam.cgi
===================================================================
--- webui/cgi-bin/dspam.cgi (revision 26)
+++ webui/cgi-bin/dspam.cgi (working copy)
@@ -531,10 +531,13 @@
foreach my $period (qw( daily weekly )) {
my $uc_period=uc($period);
my $hk="DATA_$uc_period";
- my %lst=();
+ my %lst=(
+ spam => [],
+ nonspam => [],
+ title => []
+ );
foreach my $hr (sort {$a->{idx}<=>$b->{idx}} (values %{$Stats{$period}})) {
foreach my $type (qw( spam nonspam title )) {
- (exists $lst{$type}) || ($lst{$type}=[]);
push(@{$lst{$type}},$hr->{$type});
my $totk="";
if ($type eq "spam") { $totk="S"; }
@@ -698,7 +701,7 @@
}
open(FILE, "<$MAILBOX");
while(<FILE>) {
- chomp;
+ s/\r?\n$//;
push(@buffer, $_);
}
close(FILE);
@@ -759,7 +762,7 @@
open(FILE, "<$MAILBOX");
while(<FILE>) {
- chomp;
+ s/\r?\n$//;
push(@buffer, $_);
}
close(FILE);
@@ -839,7 +842,7 @@
open(FILE, "<$MAILBOX");
while(<FILE>) {
- chomp;
+ s/\r?\n//;
push(@buffer, $_);
}
close(FILE);
@@ -907,7 +910,7 @@
}
open(FILE, "<$MAILBOX");
while(<FILE>) {
- chomp;
+ s/\r?\n//;
push(@buffer, $_);
}
close(FILE);
@@ -980,7 +983,7 @@
$rowclass="rowEven";
open(FILE, "<$MAILBOX");
while(<FILE>) {
- chomp;
+ s/\r?\n//;
if ($_ ne "") {
if ($mode eq "") {
if ($_ =~ /^From /) {