Просмотр исходного кода

Fix deletion of mail messages in Roundcube

"flag_for_deletion" was set to Purge, this needs to be set to a value of 'false' in order to move deleted mail directly to the Trash folder. 

Updated fix to correctly set variable in configuration files.
Kristan Kenney 7 лет назад
Родитель
Сommit
d319fcf469
1 измененных файлов с 5 добавлено и 2 удалено
  1. 5 2
      install/upgrade/0.9.8-28.sh

+ 5 - 2
install/upgrade/0.9.8-28.sh

@@ -127,10 +127,13 @@ chmod 751 $HESTIA/data/templates/web/unassigned/webfonts
 
 # Set Purge to false in roundcube config - https://goo.gl/3Nja3u
 if [ -f /etc/roundcube/config.inc.php ]; then
-    sed -i "s/deletion'] = 'Purge'/deletion'] = false/g" /etc/roundcube/config.inc.php
+    sed -i "s/\['flag_for_deletion'] = 'Purge';/\['flag_for_deletion'] = false;/gI" /etc/roundcube/config.inc.php
+fi
+if [ -f /etc/roundcube/defaults.inc.php ]; then
+    sed -i "s/\['flag_for_deletion'] = 'Purge';/\['flag_for_deletion'] = false;/gI" /etc/roundcube/defaults.inc.php
 fi
 if [ -f /etc/roundcube/main.inc.php ]; then
-    sed -i "s/deletion'] = 'Purge'/deletion'] = false/g" /etc/roundcube/main.inc.php
+    sed -i "s/\['flag_for_deletion'] = 'Purge';/\['flag_for_deletion'] = false;/gI" /etc/roundcube/main.inc.php
 fi
 
 # Copy default "Success" page for unassigned hosts