#!/usr/bin/perl

print "Content-Type: Text/HTML\n\n";

use CGI ':standard';
use Vpanel 1.00;
require $header;
require $accountinfo;
$domainname = find_domain ($mainuser);
$delete_mailbox = param ('mailbox');

# Define the tab which appears to the front
$tab_section = $tabnum_email;

# Output the content associated with this tab
print "<body class=section-$tab_section>";

# display tabs
require $tabdisplay;

print_header ("Deleting the mailbox $delete_mailbox for $domainname");

print "Thank you for your request to delete the mailbox of the user $delete_mailbox.";

if ( $delete_mailbox =~ "^spam" )
{
	print "  This will have the effect of deleting the contents of your spam trap.<BR><BR>";
}
print "
Please note that emptying this mailbox will <i>permanently</i> delete all emails contained therein.
If this is what you wish to do please click on the button below:
<form method=post action=/$script_bin/$final_confirm_empty_mailbox class=text>
<input type=hidden name=mailbox value=$delete_mailbox>
";
print_end_of_form();

require $footer;
