\n";
+
+/**
+ * folders.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Handles all interaction between the user and the other folder
+ * scripts which do most of the work. Also handles the Special
+ * Folders.
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!! ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION. ***/
+/*** + Base level indent should begin at left margin, as ***/
+/*** the require_once below looks. ***/
+/*** + All identation should consist of four space blocks ***/
+/*** + Tab characters are evil. ***/
+/*** + all comments should use "slash-star ... star-slash" ***/
+/*** style -- no pound characters, no slash-slash style ***/
+/*** + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD ***/
+/*** ALWAYS USE { AND } CHARACTERS!!! ***/
+/*** + Please use ' instead of ", when possible. Note " ***/
+/*** should always be used in _( ) function calls. ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/imap.php');
+require_once('../functions/array.php');
+require_once('../functions/plugin.php');
+
+ displayPageHeader($color, 'None');
+
+?>
+
+
+
+
+
+
+
+
+
+
+\n";
+ echo " | \n";
if ($success == "subscribe") {
echo "" . _("Subscribed successfully!") . " ";
} else if ($success == "unsubscribe") {
@@ -48,76 +65,42 @@
} else if ($success == "rename") {
echo "" . _("Renamed successfully!") . " ";
}
+
echo " " . _("refresh folder list") . "";
- echo " | \n";
+ echo " \n";
echo " \n";
}
$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, "");
- }
- echo "
";
- echo _("Mailboxes Created Successfully!");
- echo " ";
- echo _("Click here");
- echo " ";
- echo _("to continue.");
- echo "";
- echo " | |