include("../config/config.php"); include("../functions/strings.php"); include("../functions/page_header.php"); include("../functions/imap.php"); include("../functions/mailbox.php"); $imapConnection = loginToImapServer($username, $key, $imapServerAddress); selectMailbox($imapConnection, $old, $numMessages); getFolderList($imapConnection, $boxesFormatted, $boxesUnformatted, $boxesRaw); $dm = findMailboxDelimeter($imapConnection); if (strpos($old, $dm)) { $old_name = substr($old, strrpos($old, $dm)+1, strlen($old)); $old_parent = substr($old, 0, strrpos($old, $dm)); } else { $old_name = $old; $old_parent = ""; } echo "
\n"; displayPageHeader($color, "None"); echo "Rename a folder |
";
echo " |