Skip to content

Commit d319fcf

Browse files
author
Kristan Kenney
committed
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.
1 parent 11bd9f4 commit d319fcf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

install/upgrade/0.9.8-28.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,13 @@ chmod 751 $HESTIA/data/templates/web/unassigned/webfonts
127127

128128
# Set Purge to false in roundcube config - https://goo.gl/3Nja3u
129129
if [ -f /etc/roundcube/config.inc.php ]; then
130-
sed -i "s/deletion'] = 'Purge'/deletion'] = false/g" /etc/roundcube/config.inc.php
130+
sed -i "s/\['flag_for_deletion'] = 'Purge';/\['flag_for_deletion'] = false;/gI" /etc/roundcube/config.inc.php
131+
fi
132+
if [ -f /etc/roundcube/defaults.inc.php ]; then
133+
sed -i "s/\['flag_for_deletion'] = 'Purge';/\['flag_for_deletion'] = false;/gI" /etc/roundcube/defaults.inc.php
131134
fi
132135
if [ -f /etc/roundcube/main.inc.php ]; then
133-
sed -i "s/deletion'] = 'Purge'/deletion'] = false/g" /etc/roundcube/main.inc.php
136+
sed -i "s/\['flag_for_deletion'] = 'Purge';/\['flag_for_deletion'] = false;/gI" /etc/roundcube/main.inc.php
134137
fi
135138

136139
# Copy default "Success" page for unassigned hosts

0 commit comments

Comments
 (0)