moving of messages between folders is finished. also did a bit of
[squirrelmail.git] / src / folders_create.php
index 79b0224..d23b46f 100644 (file)
@@ -5,15 +5,10 @@
    include("../functions/imap.php");
 
    $imapConnection = loginToImapServer($username, $key, $imapServerAddress);
-
-   if ($subfolder == "INBOX")
-      fputs($imapConnection, "1 create \"user.$username.$folder_name\"\n");
-   else
-      fputs($imapConnection, "1 create \"user.$username.$subfolder.$folder_name\"\n");
-
+   fputs($imapConnection, "1 create \"$subfolder.$folder_name\"\n");
    fputs($imapConnection, "1 logout\n");
 
-   echo "<BR><BR><A HREF=\"folders.php\">Return</A>";
+   echo "<BR><BR><A HREF=\"webmail.php?right_frame=folders.php\" TARGET=_top>Return</A>";
 ?>