From ba7ba71ca01bfa6653c66e08d7afb278bae4499c Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 17 Mar 2009 14:14:50 -0600 Subject: [PATCH] How about I actually use the return value of expunge(), eh? I blame jet lag. --- imp/lib/Message.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/imp/lib/Message.php b/imp/lib/Message.php index 5de531ddf..043528e72 100644 --- a/imp/lib/Message.php +++ b/imp/lib/Message.php @@ -631,16 +631,12 @@ class IMP_Message foreach ($process_list as $key => $val) { try { - $GLOBALS['imp_imap']->ob->expunge($key, array('ids' => is_array($val) ? $val : array())); + $update_list[$key] = $GLOBALS['imp_imap']->ob->expunge($key, array('ids' => is_array($val) ? $val : array(), 'list' => $msg_list)); $imp_mailbox = IMP_Mailbox::singleton($key); if ($imp_mailbox->isBuilt()) { $imp_mailbox->removeMsgs(is_array($val) ? array($key => $val) : true); } - - if ($msg_list) { - $update_list[$key] = $val; - } } catch (Horde_Imap_Client_Exception $e) {} } -- 2.11.0