"; echo "
$org_name
"; echo "Folders
"; echo "
"; echo "\n"; for ($i = 0;$i < count($str); $i++) { $mailbox = Chop($str[$i]); $mailbox = findMailboxName($mailbox); // 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. $periodCount = countCharInString($mailbox, "."); // indent the correct number of spaces. for ($j = 0;$j < $periodCount;$j++) echo "  "; $mailboxURL = urlencode($mailbox); echo ""; echo readShortMailboxName($mailbox, "."); if (($move_to_trash == true) && ($mailbox == $trash_folder)) { $urlMailbox = urlencode($mailbox); selectMailbox($imapConnection, $mailbox, $numNessages); echo "    (empty)"; } echo "
\n"; } echo "
"; fclose($imapConnection); ?>