X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fempty_trash.php;h=8c1072cedeb71ccc10b01f81e758e387fc9bd24c;hb=a54c0e781d7cd72543b0d4a884fdd7912c72a67a;hp=ee460ba4e0b37d93aeaf46246b9c0a22960e90eb;hpb=7a783442fed4fec7b484043c3a17e26054a1a0cb;p=squirrelmail.git diff --git a/src/empty_trash.php b/src/empty_trash.php index ee460ba4..8c1072ce 100644 --- a/src/empty_trash.php +++ b/src/empty_trash.php @@ -1,44 +1,76 @@ -"; - echo "$errorNumber : $errorString
"; - exit; - } - $serverInfo = fgets($imapConnection, 256); - - // login - fputs($imapConnection, "1 login $username $key\n"); - $read = fgets($imapConnection, 1024); - - if (strpos($read, "NO")) { - error_username_password_incorrect(); - exit; - } - - // switch to the mailbox, and get the number of messages in it. - selectMailbox($imapConnection, $mailbox, $numMessages); - - if ($mailbox != $trash_folder) { - echo "ERROR -- I'm not in the trash folder!
"; - exit; - } - - // mark them as deleted - setMessageFlag($imapConnection, 1, $numMessages, "Deleted"); - expungeBox($imapConnection, $mailbox); - - // Log out this session - fputs($imapConnection, "1 logout"); - - echo ""; - displayPageHeader($mailbox); - - messages_deleted_message($mailbox, $sort, $startMessage); -?> \ No newline at end of file +