X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Ffolders.php;h=1f86f92c7ec89d7a9904f830a4357c7a19caa64e;hb=5917742752bea11a547aeba6e4102dd3655b4800;hp=e51d47e90f42c604398b46568433d189e2de8994;hpb=813eba2f5f4695bd30b895cd148658f3b90bf120;p=squirrelmail.git
diff --git a/src/folders.php b/src/folders.php
index e51d47e9..1f86f92c 100644
--- a/src/folders.php
+++ b/src/folders.php
@@ -1,9 +1,16 @@
-
- include("../config/config.php");
- include("../functions/strings.php");
- include("../functions/page_header.php");
- include("../functions/imap.php");
- include("../functions/array.php");
+\n";
echo "
\n";
- echo " ";
echo _("Folders");
- echo "\n";
echo " |
\n";
echo "\n";
- $imapConnection = sqimap_login ($username, $key, $imapServerAddress, 0);
+ $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 "