\n";
if ($in{'headers'}) {
# Show all the headers
if ($mail->{'fromline'}) {
print " | $text{'mail_rfc'} | ",
"",&mailbox::eucconv(&html_escape($mail->{'fromline'})),
" | \n";
}
foreach $h (@{$mail->{'headers'}}) {
print " | $h->[0]: | ",
"",&mailbox::eucconv(&html_escape(&mailbox::decode_mimewords($h->[1]))),
" | \n";
}
}
else {
# Just show the most useful headers
print " | $mailbox::text{'mail_from'} | ",
"",&address_link($mail->{'header'}->{'from'})," | \n";
print " | $mailbox::text{'mail_to'} | ",
"",&address_link($mail->{'header'}->{'to'})," | \n";
print " | $mailbox::text{'mail_cc'} | ",
"",&address_link($mail->{'header'}->{'cc'})," | \n"
if ($mail->{'header'}->{'cc'});
print " | $mailbox::text{'mail_date'} | ",
"",&mailbox::eucconv(&html_escape($mail->{'header'}->{'date'})),
" | \n";
print " | $mailbox::text{'mail_subject'} | ",
"",&mailbox::eucconv(&html_escape(&mailbox::decode_mimewords(
$mail->{'header'}->{'subject'})))," | \n";
if (!@sub) {
print " | $text{'mail_level2'} | ",
"",length($mail->{'header'}->{'x-spam-level'})," | \n";
}
}
print " |