X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fempty_trash.php;h=279af75eaac657ce58fdcb86035153e5f5b4f3ac;hb=f3df1364cd0eb505640905fc15bc0800be029cfe;hp=ea38697ef29e2de6bcfaa7a7acb3829eef94c51b;hpb=ad6787f093ea69dccc3b49c762dc9cfa8f31b387;p=squirrelmail.git diff --git a/src/empty_trash.php b/src/empty_trash.php index ea38697e..279af75e 100644 --- a/src/empty_trash.php +++ b/src/empty_trash.php @@ -1,54 +1,57 @@ -"; - exit; - } - - - /** GET FOLDER ARRAY OF TRASH SUBFOLDERS **/ - fputs($imapConnection, "1 list \"\" *\n"); - $str = imapReadData($imapConnection); - - for ($i = 0;$i < count($str); $i++) { - $box = Chop($str[$i]); - $mailbox = findMailboxName($box); - - if (strpos($box, $trash_folder) > 0) { - $folders[$i] = $mailbox; - } else { - $folders[$i] = "NOPE"; +"; - displayPageHeader($mailbox); - messages_deleted_message($trash_folder, $sort, $startMessage); - fputs($imapConnection, "1 logout"); -?> + sqimap_logout($imap_stream); +?> \ No newline at end of file