Changeset 97a6566 in github
- Timestamp:
- Oct 15, 2007 5:17:08 AM (6 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- fdbb191
- Parents:
- 092bc0b
- Location:
- program
- Files:
-
- 2 edited
-
include/rcube_imap.inc (modified) (2 diffs)
-
steps/settings/manage_folders.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/include/rcube_imap.inc
r092bc0b r97a6566 1740 1740 $a_mboxes = explode(',', $mbox_name); 1741 1741 1742 $all_mboxes = iil_C_ListMailboxes($this->conn, $this->_mod_mailbox($root), '*'); 1743 1742 1744 if (is_array($a_mboxes)) 1743 1745 foreach ($a_mboxes as $mbox_name) … … 1752 1754 if ($result>=0) 1753 1755 $deleted = TRUE; 1756 1757 foreach ($all_mboxes as $c_mbox) 1758 if (preg_match('/^'.preg_quote($mailbox.$this->delimiter).'/', $c_mbox)) 1759 { 1760 iil_C_UnSubscribe($this->conn, $c_mbox); 1761 $result = iil_C_DeleteFolder($this->conn, $c_mbox); 1762 if ($result>=0) 1763 $deleted = TRUE; 1764 } 1754 1765 } 1755 1766 -
program/steps/settings/manage_folders.inc
r9490b7b r97a6566 98 98 else if ($_action=='delete-folder') 99 99 { 100 $a_mboxes = array_merge($IMAP->list_mailboxes(), $IMAP->list_unsubscribed()); 101 $delimiter = $IMAP->get_hierarchy_delimiter(); 102 100 103 if ($mboxes = get_input_value('_mboxes', RCUBE_INPUT_POST)) 101 104 $deleted = $IMAP->delete_mailbox(array($mboxes)); … … 104 107 { 105 108 $OUTPUT->command('remove_folder_row', get_input_value('_mboxes', RCUBE_INPUT_POST)); 109 foreach ($a_mboxes as $mbox) 110 if (preg_match('/^'.preg_quote(get_input_value('_mboxes', RCUBE_INPUT_POST).$delimiter).'/', $mbox)) 111 $OUTPUT->command('remove_folder_row', $mbox); 106 112 $OUTPUT->show_message('folderdeleted', 'confirmation'); 107 113 $OUTPUT->send();
Note: See TracChangeset
for help on using the changeset viewer.
