if no date is sent in the header of a message, it takes the IMAP server's
[squirrelmail.git] / src / search.php
index fe169f8332dd6ae9d977276535513fc8d2e4af4d..f5b4798db4f8d69959373032f9cd97e502a1879a 100644 (file)
@@ -10,6 +10,8 @@
       exit;
    }
 
+   if (!isset($i18n_php))
+      include("../functions/i18n.php");
    if (!isset($config_php))
       include("../config/config.php");
    if (!isset($strings_php))
@@ -96,6 +98,7 @@
    if ($where && $what) {   
       sqimap_mailbox_select($imapConnection, $mailbox);
       sqimap_search($imapConnection, $where, $what, $mailbox, $color);
+      sqimap_mailbox_close($imapConnection);
    }
    do_hook("search_bottom");
    sqimap_logout ($imapConnection);