sqimap_messages_flag is depreciated and no longer exists. Now emptying the trash...
authorcigamit <cigamit@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 15 Apr 2005 02:07:32 +0000 (02:07 +0000)
committercigamit <cigamit@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 15 Apr 2005 02:07:32 +0000 (02:07 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9280 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/tree.php

index f8503b8..7850c8c 100644 (file)
@@ -103,7 +103,7 @@ function walkTreeInPreOrderEmptyFolder($index, $imap_stream, $tree, $mailbox) {
         } else {
             $mbx_response = sqimap_mailbox_select($imap_stream, $mailbox);
             if ($mbx_response['EXISTS'] > 0) {
-               sqimap_messages_flag ($imap_stream, 1, '*', 'Deleted', true);
+                sqimap_toggle_flag($imap_stream, '1:*', '\\Deleted', true, true);
                // CLOSE === EXPUNGE and UNSELECT
                sqimap_run_command($imap_stream,'CLOSE',false,$response,$message);
             }
@@ -114,7 +114,7 @@ function walkTreeInPreOrderEmptyFolder($index, $imap_stream, $tree, $mailbox) {
         } else {
             $mbx_response = sqimap_mailbox_select($imap_stream, $mailbox);
             if ($mbx_response['EXISTS'] > 0) {
-                sqimap_messages_flag ($imap_stream, 1, '*', 'Deleted', true);
+                sqimap_toggle_flag($imap_stream, '1:*', '\\Deleted', true, true);
                 // CLOSE === EXPUNGE and UNSELECT
                 sqimap_run_command($imap_stream,'CLOSE',false,$response,$message);
             }
@@ -193,4 +193,5 @@ function simpleWalkTreePre($index, $tree) {
         echo $tree[$index]['value'] . '<br />';
     }
 }
-?>
+
+?>
\ No newline at end of file