- fixed bugs in sorting by from and subject
[squirrelmail.git] / src / empty_trash.php
index 91d88d81b62852d35325717fa5ebc7f0eafd4564..aa3eb97e967a218df70f2a2a1e2cb04addfbba97 100644 (file)
@@ -56,8 +56,8 @@
    // now lets go through the tree and delete the folders
    walkTreeInPreOrderEmptyTrash(0, $imap_stream, $foldersTree);
 
-   sqimap_mailbox_select($imap_stream, $trash_folder, $numMessages);
-   displayPageHeader($color, $mailbox);
-   messages_deleted_message($trash_folder, $sort, $startMessage, $color);
+   $location = get_location();
+   header ("Location: $location/left_main.php");
+
    sqimap_logout($imap_stream);
 ?>