From a51932f2154c86957417828efb811a24d3033f70 Mon Sep 17 00:00:00 2001 From: cigamit Date: Fri, 15 Apr 2005 02:07:32 +0000 Subject: [PATCH] sqimap_messages_flag is depreciated and no longer exists. Now emptying the trash works again. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9280 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/tree.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/functions/tree.php b/functions/tree.php index f8503b81..7850c8cb 100644 --- a/functions/tree.php +++ b/functions/tree.php @@ -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'] . '
'; } } -?> + +?> \ No newline at end of file -- 2.25.1