X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Ffolders.php;h=4718e760c23d5ee6565d48b5ec5a8f295f17eecd;hb=b2fd071870529300cfa3698f1d66f71223971b88;hp=7b7ec043a66d59175e1a7d9f9e476b01b75ac8bd;hpb=7c1b84d979f4bbbcc8ce5d7423421123c4155107;p=squirrelmail.git
diff --git a/src/folders.php b/src/folders.php
index 7b7ec043..4718e760 100644
--- a/src/folders.php
+++ b/src/folders.php
@@ -1,89 +1,121 @@
-
include("../config/config.php");
include("../functions/strings.php");
include("../functions/page_header.php");
include("../functions/imap.php");
include("../functions/mailbox.php");
+ include("../functions/array.php");
- displayPageHeader("None");
+ include("../src/load_prefs.php");
+
+ echo "\n";
+
+ displayPageHeader($color, "None");
echo "\n";
- echo " \n";
- echo " Folders\n";
+ echo " |
\n";
+ echo " ";
+ echo _("Folders");
+ echo "\n";
echo " |
\n";
echo "
\n";
- $imapConnection = loginToImapServer($username, $key, $imapServerAddress);
-
- fputs($imapConnection, "1 list \"\" *\n");
- $str = imapReadData($imapConnection);
-
- for ($i = 0;$i < count($str); $i++) {
- $mailbox = Chop($str[$i]);
- // find the quote at the begining of the mailbox name.
- // i subtract 1 from the strlen so it doesn't find the quote at the end of the mailbox name.
- $mailbox = findMailboxName($mailbox);
- $periodCount = countCharInString($mailbox, ".");
-
- // indent the correct number of spaces.
- for ($j = 0;$j < $periodCount;$j++)
- $boxes[$i] = "$boxes[$i] ";
-
- $boxes[$i] = $boxes[$i] . readShortMailboxName($mailbox, ".");
- $long_name_boxes[$i] = $mailbox;
- }
+ $imapConnection = loginToImapServer($username, $key, $imapServerAddress, 0);
+ getFolderList($imapConnection, $boxes);
/** DELETING FOLDERS **/
-
- echo "