From 0d2130f5510a334d48cdfc95e0476a3f3f9c393c Mon Sep 17 00:00:00 2001 From: tokul Date: Sun, 5 Feb 2006 11:31:22 +0000 Subject: [PATCH] rebuild mailbox cache when trash is emptied. cleans cached trash subfolders git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10647 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/empty_trash.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/empty_trash.php b/src/empty_trash.php index d81facc7..ceaac877 100644 --- a/src/empty_trash.php +++ b/src/empty_trash.php @@ -67,6 +67,8 @@ for ($i = 0; $i < $numboxes; $i++) { // now lets go through the tree and delete the folders walkTreeInPreOrderEmptyTrash(0, $imap_stream, $foldersTree); +// update mailbox cache +$mailboxes=sqimap_get_mailboxes($imap_stream,true,$show_only_subscribed_folders); sqimap_logout($imap_stream); // close session properly before redirecting -- 2.25.1