浏览代码

Prevent endless recursive sent subfolder names - see: http://thread.gmane.org/gmane.mail.squirrelmail.user/39178

pdontthink 13 年之前
父节点
当前提交
56dd93f889
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      plugins/sent_subfolders/functions.php

+ 4 - 0
plugins/sent_subfolders/functions.php

@@ -131,6 +131,10 @@ function save_option_sent_subfolders_setting($option) {
     } else {
         setPref($data_dir, $username, 'use_sent_subfolders', SMPREF_ON);
         setPref($data_dir, $username, 'move_to_sent', SMPREF_ON);
+        $check_sent_subfolders_base = getPref($data_dir, $username, 'sent_subfolders_base', '');
+        if ($check_sent_subfolders_base === '') {
+            setPref($data_dir, $username, 'sent_subfolders_base', $sent_subfolders_base);
+        }
     }
 
     /* Now just save the option as normal. */