On error, we can directly load mailbox.php page here.
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 28 Jul 2009 06:10:53 +0000 (00:10 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 28 Jul 2009 06:10:53 +0000 (00:10 -0600)
imp/search.php

index 0ae8421..fb0b8a8 100644 (file)
@@ -1,5 +1,7 @@
 <?php
 /**
+ * IMP search script.
+ *
  * URL Parameters:
  * ---------------
  * 'search_mailbox'  --  If exists, don't show the folder selection list; use
 
 require_once dirname(__FILE__) . '/lib/base.php';
 
-/* Redirect back to the mailbox if searching is not allowed. */
+/* Load mailbox page if searching is not allowed. */
 if ($_SESSION['imp']['protocol'] == 'pop') {
     $notification->push(_("Searching is not available with a POP3 server."), 'horde.error');
-    header('Location: ' . Horde::applicationUrl('mailbox.php', true));
+    $from_message_page = true;
+    $actionID = $start = null;
+    require_once IMP_BASE . '/mailbox.php';
     exit;
 }