* Hopefully we won't need to do this EVERY time... so I added code
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 20 May 2001 15:35:33 +0000 (15:35 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 20 May 2001 15:35:33 +0000 (15:35 +0000)
  to avoid any expensive IMAP calls (maybe all IMAP calls are expensive ...
  <grin>)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1379 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/left_main.php

index dac7f1e..3d38e17 100644 (file)
@@ -20,7 +20,7 @@
    
    displayHtmlHeader();
 
-   if ($auto_create_special) {
+   if ($auto_create_special && ! isset($auto_create_done)) {
          if (isset ($sent_folder) && $sent_folder != "none") {
                 if (!sqimap_mailbox_exists ($imapConnection, $sent_folder)) {
                        sqimap_mailbox_create ($imapConnection, $sent_folder, "");
@@ -31,6 +31,8 @@
                        sqimap_mailbox_create ($imapConnection, $trash_folder, "");
                 }
          }
+         $auto_create_done = true;
+         session_register('auto_create_done');
    }
 
    function formatMailboxName($imapConnection, $box_array, $delimeter) {