X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Ffolders.php;h=ad9c7232799e3efae3269ddc5256466ccf83c0f2;hb=5bdd722368a3fac32defc2242e9dd3f1e567a527;hp=35b5a39fcc2c3c3108d689d823d9d6bb01939194;hpb=390372b45bd353cbfc6843382bc7f4291544fc49;p=squirrelmail.git diff --git a/src/folders.php b/src/folders.php index 35b5a39f..ad9c7232 100644 --- a/src/folders.php +++ b/src/folders.php @@ -22,6 +22,8 @@ include("../functions/imap.php"); if (!isset($array_php)) include("../functions/array.php"); + if (!isset($plugin_php)) + include("../functions/plugin.php"); include("../src/load_prefs.php"); @@ -34,7 +36,7 @@ echo " \n"; echo "\n"; - if ($success) { + if ($success || $sent_create == "true" || $trash_create == "true") { echo "
"; } else if ($success == "rename") { echo "" . _("Renamed successfully!") . " "; + } else if (($sent_create == "true") || ($trash_create == "true")) { + $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); + if ($sent_create == "true") { + sqimap_mailbox_create ($imapConnection, $sent_folder, ""); + } + if ($trash_create == "true") { + sqimap_mailbox_create ($imapConnection, $trash_folder, ""); + } + sqimap_logout($imapConnection); + echo _("Folders created successfully!"); } + echo " " . _("refresh folder list") . ""; echo " |
"; + echo _("Special Folder Options"); + echo " |
"; + echo _("In order for SquirrelMail to provide the full set of options you need to create the special folders listed below. Just click the check box and hit the create button."); + echo " |