- $imapConnection = sqimap_login ($username, $key, $imapServerAddress, $imapPort, 0);
- $boxes = sqimap_mailbox_list($imapConnection);
+
- /** Cyrus Folder Options**/
-//Creates the Sent and Trash folder
- if (($sent_create == "true") || ($trash_create == "true")) {
- if ($sent_create == "true") {
- sqimap_mailbox_create ($imapConnection, $sent_folder, "");
- }
- if ($trash_create == "true") {
- sqimap_mailbox_create ($imapConnection, $trash_folder, "");
- }
+
+
-//Major hack, need to right a funtion to check and if mailbox is subscribed to
- sqimap_subscribe($imapConnection, "INBOX");
- echo "
";
- echo _("Mailboxes Created Successfully!");
- echo " ";
- echo _("Click here");
- echo " ";
- echo _("to continue.");
- echo "";
- echo " | |