#!/usr/local/bin/perl # mail.cgi # Display messages that have been categorized as spam require './spam-lib.pl'; &foreign_require("mailbox", "mailbox-lib.pl"); &ReadParse(); $folder = &spam_file_folder(); &disable_indexing($folder); dbmopen(%read, "$user_config_directory/mailbox/read", 0600); $ref = $userconfig{'refresh'} || $mailbox::userconfig{'refresh'}; if ($ref) { print "Refresh: $ref\r\n"; &ui_print_header(undef, $text{'mail_title'}, "", undef, 0, 0, 0, $ref > 60 ? &text('mail_will', int($ref/60)) : &text('mail_wills', $ref)); } else { &ui_print_header(undef, $text{'mail_title'}, ""); } print &check_clicks_function() if (defined(&check_clicks_function)); #print "$text{'mail_desc'}
\n"; # View mail from the most recent $perpage = $folder->{'perpage'} || $mailbox::userconfig{'perpage'}; @mail = &mailbox::mailbox_list_mails_sorted($in{'start'}, $in{'start'}+$perpage-1, $folder, 1, \@error); print "
\n"; print "\n"; # Show search field print "