} # unless
} # unless
- my ($list, $sequence, $comment);
+ $hit_count //= '';
+
+ my $list = '';
+ my $sequence = 0;
+ my $comment = '';
# Parse rule
if ($rule) {
$rule =~ s/\\@/\@/;
} # if
+ $sequence //= 0;
$next++;
# Start Sender line
}, $comment;
print end_Tr;
+ my $msgnbr = 0;
+
for my $rec (@$msgs) {
+ $msgnbr++;
+
# We increased $next earlier so do not add 1 here
if (($next % $lines) == (@senders % $lines)) {
$dataclass = 'tablebottomdata';
- $rightclass = 'tablebottomright';
- $subjectclass = 'subjectbottom';
+ $rightclass = 'tablebottomright' if $msgnbr == @$msgs;
+
+ # Only subjectbottom the last message
+ $subjectclass = 'subjectbottom' if $msgnbr == @$msgs;
} # if
if ($date eq substr ($rec->{timestamp}, 0, 10)) {
-class => $subjectclass,
-colspan => 4,
}, a {
- -href => "display.cgi?sender=$sender;msg_date=$rec->{timestamp}",
+ -href => "display.cgi?sender=$sender;msg_date=$rec->{timestamp}",
}, ' ' . $rec->{subject},
- td {-class => $rightclass,
- -width => '150',
- -align => 'right'}, span {-class => 'date'}, $rec->{date} . ' ',
+ td {-class => $rightclass,
+ -width => '150',
+ -align => 'right'}, span {-class => 'date'}, $rec->{date} . ' ',
];
} # for
} # for
$condition .= "type = '$type' and timestamp > '$sod' and timestamp < '$eod'";
} # if
-$total = CountLog(
+# Need to count distinct on sender
+$total = CountLogDistinct(
userid => $userid,
+ column => 'sender',
additional => $condition,
);