\n"; // If the page has been loaded without a specific mailbox, // just show a page of general info. if (!isset($mailbox)) { displayPageHeader($color, "None"); general_info($motd, $org_logo, $version, $org_name, $color); echo ""; exit; } sqimap_mailbox_select($imapConnection, $mailbox); $numMessages = sqimap_get_num_messages ($imapConnection, $mailbox); displayPageHeader($color, $mailbox); // Check to see if we can use cache or not. Currently the only time when you wont use it is // when a link on the left hand frame is used. Also check to make sure we actually have the // array in the registered session data. :) // if (!$use_mailbox_cache || !session_is_registered("msgs")) { // echo "
not using cache
\n"; // if (session_is_registered("messages")) // session_unregister("messages"); showMessagesForMailbox($imapConnection, $mailbox, $numMessages, $startMessage, $sort, $color); // } else { // echo "
using cache
\n"; // $msgs = unserialize($messages); // displayMessageArray($imapConnection, $numMessages, $startMessage, $msgs, $mailbox, $sort, $color); // } // close the connection sqimap_logout ($imapConnection); ?>