- // switch to the mailbox, and get the number of messages in it.
- selectMailbox($imapConnection, $mailbox, $numMessages);
-
- // Display the header at the top of the page
+ sqimap_mailbox_select($imapConnection, $mailbox);
+ $numMessages = sqimap_get_num_messages ($imapConnection, $mailbox);