From 17368f85891f2cb3ef047e9fe20b95d4b4bc3a60 Mon Sep 17 00:00:00 2001 From: jmunro Date: Tue, 12 Mar 2002 17:31:44 +0000 Subject: [PATCH] took out filter fix for folder rename/delete. its broken git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2571 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_mailbox.php | 6 +++--- plugins/filters/setup.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index dadcbad8..d392c134 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -184,7 +184,7 @@ function sqimap_mailbox_delete ($imap_stream, $mailbox) $read_ary = sqimap_run_command($imap_stream, "DELETE \"$mailbox\"", TRUE, $response, $message); sqimap_unsubscribe ($imap_stream, $mailbox); - do_hook("rename_or_delete_folder"); + // do_hook("rename_or_delete_folder"); } /*********************************************************************** @@ -222,7 +222,7 @@ function sqimap_mailbox_rename( $imap_stream, $old_name, $new_name ) { TRUE, $response, $message); sqimap_unsubscribe($imap_stream, $old_name.$postfix); sqimap_subscribe($imap_stream, $new_name.$postfix); - do_hook("rename_or_delete_folder"); +// do_hook("rename_or_delete_folder"); $l = strlen( $old_name ) + 1; $p = 'unformatted'; foreach ( $boxesall as $box ) { @@ -235,7 +235,7 @@ function sqimap_mailbox_rename( $imap_stream, $old_name, $new_name ) { } sqimap_unsubscribe($imap_stream, $box[$p]); sqimap_subscribe($imap_stream, $new_sub); - do_hook("rename_or_delete_folder"); + // do_hook("rename_or_delete_folder"); } } } diff --git a/plugins/filters/setup.php b/plugins/filters/setup.php index a3906273..99e9357b 100644 --- a/plugins/filters/setup.php +++ b/plugins/filters/setup.php @@ -86,7 +86,7 @@ function squirrelmail_plugin_init_filters() { } $squirrelmail_plugin_hooks['optpage_register_block']['filters'] = 'squirrelmail_plugin_optpage_register_block'; # $squirrelmail_plugin_hooks['special_mailbox']['filters'] = 'filters_special_mailbox'; - $squirrelmail_plugin_hooks['rename_or_delete_folder']['filters'] = 'update_for_folder'; +// $squirrelmail_plugin_hooks['rename_or_delete_folder']['filters'] = 'update_for_folder'; } function filters_special_mailbox( $mb ) { -- 2.25.1