瀏覽代碼

added patch that fixed bugs in sent/trash creating

Luke Ehresman 25 年之前
父節點
當前提交
d3cd906cf3
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/folders.php

+ 3 - 1
src/folders.php

@@ -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") {
@@ -50,12 +50,14 @@
       } 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!");
       }