From 4df5cf20e6800bd226472710f7b3c9c399180593 Mon Sep 17 00:00:00 2001 From: nehresma Date: Sat, 4 Mar 2000 21:31:54 +0000 Subject: [PATCH] sqimap_mailbox_delete was recursive and it no longer needed to be git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@265 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_mailbox.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index 143edfdc..1c562dd7 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -79,21 +79,9 @@ /****************************************************************************** - ** This is a recursive function that checks to see if the folder has any - ** subfolders, and if so it calls itself on the subfolders first, then - ** removes the parent folder. + ** This function simply deletes the given folder ******************************************************************************/ function sqimap_mailbox_delete ($imap_stream, $mailbox) { - global $boxes; - - $dm = sqimap_get_delimiter($imap_stream); - for ($i = 0; $i < count($boxes); $i++) { - if (strstr($boxes[$i]["unformatted"], $mailbox . $dm)) { - $new_delete = $boxes[$i]["unformatted"]; - $boxes = removeElement($boxes, $i); -// sqimap_mailbox_delete ($imap_stream, $new_delete); - } - } sqimap_unsubscribe ($imap_stream, $mailbox); fputs ($imap_stream, "a001 DELETE \"$mailbox\"\n"); $read_ary = sqimap_read_data($imap_stream, "a001", true, $response, $message); -- 2.25.1