From 1f936c98cc922cae3f4191d8df9af7821d8064a6 Mon Sep 17 00:00:00 2001 From: lkehresman Date: Mon, 2 Oct 2000 16:02:38 +0000 Subject: [PATCH] added patch that fixed bugs in sent/trash creating git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@774 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/folders.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/folders.php b/src/folders.php index 35a016c7..0fdf5a9f 100644 --- a/src/folders.php +++ b/src/folders.php @@ -36,7 +36,7 @@ echo " \n"; echo "\n"; - if ($success) { + if ($success || $sent_create == "true" || $trash_create == "true") { echo "\n"; echo "
\n"; if ($success == "subscribe") { @@ -50,12 +50,14 @@ } 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!"); } -- 2.25.1