Skip to content

Commit

Permalink
ids_ob is a Horde_Imap_Client_Ids object, not an IMP_Indices object
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Mar 14, 2014
1 parent 2f74397 commit 1b9ba57
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions imp/lib/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1b9ba57

Please sign in to comment.