#! @PERL@ -wT -I@cgibin@ # List the messages in a user's log directory # --S-LICENSE-- # $Revision: 1.35 $ # @configure_input@ # This file must protected with an equivalent to httpd.conf lines # in the README file. use strict 'subs'; use POSIX qw(strftime); use common; my($msg_num, $msg, $msg_link, $date, $last_date, $from, $result, $subject); get_log_msgs($query{msg} || undef, 100); html_head("Messages Logged for $user at $hostname"); print "
\n
\n"; print $query{result} ? html_str_encode($query{result}) : " "; print "\n
\n";
common_buttons();
print "\n";
if ($#msgs_num >= 0) {
print <
EOF
print_links();
for ($msg_num = $msg_last; $msg_num >= $msg_first; --$msg_num) {
$msg = $msgs_num[$msg_num];
next if (!$msg);
$date = $msgs_date{$msg};
if ($date =~ s/(.*) .*/$1/
&& (!$last_date || $last_date ne $date)) {
$from = !$last_date ? 'From' : ' ';
$subject = !$last_date ? 'Subject' : ' ';
$last_date = $date;
if ($msg_part_num) {
$date .= " part $msg_part_num";
$msg_part_num= 0;
}
print <
$date
$from
 
$subject
EOF
}
$from = $msgs_from{$msg};
$from =~ s/"//g;
$from =~ s/^\s*<(.*)>/$1/;
$result = $msgs_result{$msg};
$result =~ s/:(.*)/:$1<\/span>/;
$msg_link = "$list_msg_link${url_ques}msg=$msg\" name=$msg>";
print " $msg_link";
print $msg_num+1;
print "\n $msg_link$msgs_date{$msg}\n";
print < $result
$msgs_subject{$msg}
EOF
}
print_links();
print <
EOF
}
html_footer();
print "Grey
greylist embargo
OK-Grey
greylist embargo ended
DCC
bulk according to DCC
OK-DCC
not bulk according to DCC
Rep
bulk DCC Reputation
MTA
blacklisted by mail system
MTA-OK
whitelisted by mail system
BL
blacklisted in whiteclnt files
WL
whitelisted in whiteclnt files
EOF
my $args = "$DNSBL_ARGS $DCCM_ARGS $DCCIFD_ARGS";
if ($args =~ /-B/) {
if ($args !~ /-B\s*set:group=\d+/i) {
print < DNSBL
DNS blacklisted
EOF
} else {
print < DNSBLn
DNS blacklisted
EOF
}
}
print < italic
checks off