don't modify sent_folder option in plugin. It does not belong to plugin.
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 29 May 2006 17:26:48 +0000 (17:26 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 29 May 2006 17:26:48 +0000 (17:26 +0000)
Plugin still rewrites target folder in compose_send hook

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

plugins/sent_subfolders/setup.php

index 4f9f38e..f2c81f6 100644 (file)
@@ -61,6 +61,7 @@ function sent_subfolders_check_handleAsSent() {
     global $handleAsSent_result, $sent_subfolders_base,
            $use_sent_subfolders;
 
+    // FIXME: hardcoded folder
     $sent_subfolders_base = 'INBOX.Sent';
     $args = func_get_arg(0);
     sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION);
@@ -274,8 +275,8 @@ function sent_subfolders_update_sentfolder() {
                         sqimap_subscribe($ic, $sent_subfolder);
                     }
                     /* Update sent_folder setting. */
-                    setPref($data_dir, $username, 'sent_folder', $sent_subfolder);
-                    setPref($data_dir, $username, 'move_to_sent', SMPREF_ON);
+                    //setPref($data_dir, $username, 'sent_folder', $sent_subfolder);
+                    //setPref($data_dir, $username, 'move_to_sent', SMPREF_ON);
                     $sent_folder = $sent_subfolder;
                     $move_to_sent = SMPREF_ON;
                 }