$imapConnection = loginToImapServer($username, $key, $imapServerAddress);
// switch to the mailbox, and get the number of messages in it.
$imapConnection = loginToImapServer($username, $key, $imapServerAddress);
// switch to the mailbox, and get the number of messages in it.