From 1b9ba5793128b608f03fe93948edf164f22e1805 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 13 Mar 2014 11:36:56 -0600 Subject: [PATCH] ids_ob is a Horde_Imap_Client_Ids object, not an IMP_Indices object --- imp/lib/Message.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/imp/lib/Message.php b/imp/lib/Message.php index f93fc897a82..54d35066724 100644 --- a/imp/lib/Message.php +++ b/imp/lib/Message.php @@ -250,13 +250,13 @@ public function delete(IMP_Indices $indices, array $opts = array()) * an error occurs. But 1) the user has already indicated they * don't care about this data and 2) message IDs (used by some * maillog backends) won't be available after deletion. */ + $delete_ids = array(); foreach ($ids_ob as $val) { - foreach ($val->uids as $val2) { - $maillog->deleteLog(new IMP_Maillog_Message( - new IMP_Indices($val->mbox, $val2) - )); - } + $delete_ids[] = new IMP_Maillog_Message( + new IMP_Indices($ob->mbox, $val) + ); } + $maillog->deleteLog($delete_ids); /* Delete the messages. */ $expunge_now = false;