added patch that fixed bugs in sent/trash creating
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 2 Oct 2000 16:02:38 +0000 (16:02 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 2 Oct 2000 16:02:38 +0000 (16:02 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@774 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/folders.php

index 35a016c766e76a522744a59cc6f1d14441969abf..0fdf5a9f1215fb86775d01407545525f9a0ab043 100644 (file)
@@ -36,7 +36,7 @@
    echo "   </b></TD></TR>\n";
    echo "</TABLE>\n";
 
-   if ($success) {
+   if ($success || $sent_create == "true" || $trash_create == "true") {
       echo "<table width=100% align=center cellpadding=3 cellspacing=0 border=0>\n";
       echo "   <tr><td><center>\n";
       if ($success == "subscribe") {
       } else if ($success == "rename") {
          echo "<b>" . _("Renamed successfully!") . "</b><br>";
       } 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!");
       }