I believe everything is compatable with all IMAP servers now
[squirrelmail.git] / functions / mailbox_display.php
index 66c7fde5402ae105ced9ad078ba9857ca207d9e5..98007b0415932618fc00be84d3b20eee5c9b7950 100644 (file)
@@ -9,6 +9,8 @@
     **/
 
    function printMessageInfo($imapConnection, $t, $i, $from, $subject, $dateString, $answered, $seen, $mailbox, $sort, $startMessage) {
+      require ("../config/config.php");
+
       $senderName = getSenderName($from);
       $urlMailbox = urlencode($mailbox);
       $subject = trim(stripslashes($subject));
@@ -31,7 +33,7 @@
     ** This function loops through a group of messages in the mailbox and shows them
     **/
    function showMessagesForMailbox($imapConnection, $mailbox, $numMessages, $startMessage, $sort) {
-      include("../config/config.php");
+      require ("../config/config.php");
 
       if (1 <= $numMessages) {
          getMessageHeaders($imapConnection, 1, $numMessages, $from, $subject, $date);
       echo "      <TD WIDTH=30% ALIGN=LEFT>\n";
       echo "         <NOBR><FONT FACE=\"Arial,Helvetica\" SIZE=2><INPUT TYPE=SUBMIT NAME=\"moveButton\" VALUE=\"Move to:\">\n";
       echo "         <SELECT NAME=\"targetMailbox\">\n";
-      getFolderList($imapConnection, $boxesFormatted, $boxesUnformatted);
+      getFolderList($imapConnection, $boxesFormatted, $boxesUnformatted, $boxesRaw);
       for ($i = 0; $i < count($boxesUnformatted); $i++) {
          $use_folder = true;
          for ($p = 0; $p < count($special_folders); $p++) {