Skip to content

Commit d98ac64

Browse files
committed
Actively update the mailbox_soft_delete config option
1 parent 56ab7ba commit d98ac64

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

install/sql/incremental/upd_dev_collection.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@ ALTER TABLE `mail_user` ADD COLUMN `imap_prefix` varchar(255) NULL default NULL
55
UPDATE `dns_ssl_ca` SET `ca_issue` = 'sectigo.com' WHERE `ca_issue` = 'comodo.com';
66
UPDATE `dns_ssl_ca` SET `ca_issue` = 'sectigo.com' WHERE `ca_issue` = 'comodoca.com';
77
UPDATE `dns_ssl_ca` SET `ca_name` = 'Sectigo (formerly Comodo CA)' WHERE `ca_issue` = 'sectigo.com';
8-
-- not updating the dns_rr table to change all CAA records that have comodo.com / comodoca.com - we should not touch users records imo - TP
8+
-- not updating the dns_rr table to change all CAA records that have comodo.com / comodoca.com - we should not touch users records imo - TP
9+
10+
-- #6445 Update the mailbox_soft_delete config option to it's new structure.
11+
UPDATE server SET config=REGEXP_REPLACE(config, 'mailbox_soft_delete=n', 'mailbox_soft_delete=0') WHERE config LIKE '%mailbox_soft_delete=n%'
12+
UPDATE server SET config=REGEXP_REPLACE(config, 'mailbox_soft_delete=y', 'mailbox_soft_delete=7') WHERE config LIKE '%mailbox_soft_delete=y%'

server/lib/classes/cron.d/500-clean_mailboxes.inc.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,6 @@ private function purge_soft_deleted_maildir() {
115115
global $app, $conf;
116116
$mail_config = $app->getconf->get_server_config($conf["server_id"], 'mail');
117117

118-
if ($mail_config['mailbox_soft_delete'] == 'y') {
119-
// Backward compatibility for dev installs between 3.2.9 and 3.2.10.
120-
$mail_config['mailbox_soft_delete'] = 7;
121-
}
122118
if ($mail_config['mailbox_soft_delete'] > 0) {
123119
$matched_dirs = glob($mail_config['homedir_path'] . "/*/[a-z0-9.-]*-deleted-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]");
124120

0 commit comments

Comments
 (0)