prepare some imap work in the mail.php