From: Michael M Slusarz Date: Tue, 28 Jul 2009 03:09:33 +0000 (-0600) Subject: Another place to save on an EXAMINE IMAP call X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1373b885792b3252a52b9acaf6fd62fe1c0fb788;p=horde.git Another place to save on an EXAMINE IMAP call --- diff --git a/imp/ajax.php b/imp/ajax.php index 06063d0c1..610c61f73 100644 --- a/imp/ajax.php +++ b/imp/ajax.php @@ -487,6 +487,11 @@ case 'ShowPreview': 'preview' => true, ); + /* We know we are going to be exclusively dealing with this mailbox, so + * select it on the IMAP server (saves some STATUS calls). Open R/W to + * clear the RECENT flag. */ + $imp_imap->ob->openMailbox($ptr['key'], Horde_Imap_Client::OPEN_READWRITE); + $show_msg = new IMP_Views_ShowMessage(); $result = (object)$show_msg->showMessage($args); break;