Fixed a bug with auto-subscribing to folders. The check to see if we've
authorallah03 <allah03@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 9 Jul 2001 21:13:35 +0000 (21:13 +0000)
committerallah03 <allah03@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 9 Jul 2001 21:13:35 +0000 (21:13 +0000)
subscribed already wasn't being stored.

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

src/left_main.php

index a227e4679b203402fc3c755256df6888c1607390..729460ebde622357beadab1b9cadeb8421d272f4 100644 (file)
@@ -20,6 +20,7 @@
    
    displayHtmlHeader();
 
+   $auto_create_done = getPref($data_dir, $username, 'auto_create_done');
    if ($auto_create_special && ! isset($auto_create_done)) {
          if (isset ($sent_folder) && $sent_folder != "none") {
                 if (!sqimap_mailbox_exists ($imapConnection, $sent_folder)) {
@@ -37,6 +38,7 @@
          }
          $auto_create_done = true;
          session_register('auto_create_done');
+          setPref($data_dir, $username, 'auto_create_done', TRUE);
    }
 
    function formatMailboxName($imapConnection, $box_array, $delimeter) {