Ejemplo n.º 1
0
 if (!$pop3->connect($current["pop"]) || !$pop3->login($current["username"], $current["pass"])) {
     echo '<b><br /><center><a href="tiki-webmail.php?locSection=settings">Click here for settings.</a></center></b>';
     die;
 }
 /*
 	if ($pop3->has_error) { //new
 		echo '<b><br /><center><a href="tiki-webmail.php?locSection=settings">Click here for settings.</a></center></b>';
 		die;
 	}
 */
 if (isset($_REQUEST["delete"])) {
     if (isset($_REQUEST["msg"])) {
         check_ticket('webmail');
         // Now we can delete the messages
         foreach (array_keys($_REQUEST["msg"]) as $msg) {
             $listing = $pop3->GetListing($msg);
             $realmsgid = $listing["msg_id"];
             $webmaillib->remove_webmail_message($current["accountId"], $user, $realmsgid);
             $pop3->deleteMsg($msg);
         }
     }
 }
 if (isset($_REQUEST["delete_one"])) {
     check_ticket('webmail');
     $aux = $pop3->getParsedHeaders($_REQUEST["msgdel"]);
     $realmsgid = ereg_replace("[<>]", "", $aux["Message-ID"]);
     $webmaillib->remove_webmail_message($current["accountId"], $user, $realmsgid);
     $pop3->deleteMsg($_REQUEST["msgdel"]);
 }
 if (isset($_REQUEST["delete_one"]) || isset($_REQUEST["delete"])) {
     // Now delete the messages and reopen the mailbox to renumber messages