79b0224cbdaf13a0278265601101be0d90d5da24
[squirrelmail.git] / src / folders_create.php
1 <?
2 include("../config/config.php");
3 include("../functions/strings.php");
4 include("../functions/page_header.php");
5 include("../functions/imap.php");
6
7 $imapConnection = loginToImapServer($username, $key, $imapServerAddress);
8
9 if ($subfolder == "INBOX")
10 fputs($imapConnection, "1 create \"user.$username.$folder_name\"\n");
11 else
12 fputs($imapConnection, "1 create \"user.$username.$subfolder.$folder_name\"\n");
13
14 fputs($imapConnection, "1 logout\n");
15
16 echo "<BR><BR><A HREF=\"folders.php\">Return</A>";
17 ?>
18
19