Explorar o código

rebuild mailbox cache when trash is emptied. cleans cached trash subfolders

tokul %!s(int64=19) %!d(string=hai) anos
pai
achega
190b00f37c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/empty_trash.php

+ 2 - 0
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