$imapConnection = loginToImapServer($username, $key, $imapServerAddress);
// switch to the mailbox, and get the number of messages in it.
- echo "$mailbox<BR>";
- exit;
selectMailbox($imapConnection, $mailbox, $numMessages);
$folder = getFolderNameMinusINBOX($mailbox);
} else {
removeFolder($imapConnection, "user.$username.$folder");
}
- echo "success";
// Log out this session
fputs($imapConnection, "1 logout");