X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Ffolders.php;h=24eaa84420bc2d52e67dff2abdfc2844706e9566;hb=63277aaab639531ac0c8166676db7da838d68adc;hp=7dc1947d8198259084b6b62324cbb5f65587a7bb;hpb=60573cd97504bd83474f35dba2b43427ccb2a755;p=squirrelmail.git diff --git a/src/folders.php b/src/folders.php index 7dc1947d..24eaa844 100644 --- a/src/folders.php +++ b/src/folders.php @@ -1,103 +1,273 @@ -
- - function getBoxForCreate($mailbox) { - if (substr($mailbox, 0, 6) == "INBOX.") - $box = substr($mailbox, 6, strlen($mailbox)); - else - $box = $mailbox; - - return $box; - } +\n"; - echo "
- 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, ".");
+
\n"; } + $imapConnection = sqimap_login ($username, $key, $imapServerAddress, $imapPort, 0); + $boxes = sqimap_mailbox_list($imapConnection); /** DELETING FOLDERS **/ - echo " |