@@ -429,7 +429,7 @@ function user_delete($event_name, $data) {
429429 $ maildir_path_deleted = false ;
430430 $ old_maildir_path = $ data ['old ' ]['maildir ' ];
431431 if ($ old_maildir_path != $ mail_config ['homedir_path ' ] && strlen ($ old_maildir_path ) > strlen ($ mail_config ['homedir_path ' ]) && !stristr ($ old_maildir_path , '// ' ) && !stristr ($ old_maildir_path , '.. ' ) && !stristr ($ old_maildir_path , '* ' ) && strlen ($ old_maildir_path ) >= 10 ) {
432- if ($ mail_config ['mailbox_safe_delete ' ] == 'y ' ) {
432+ if ($ mail_config ['mailbox_soft_delete ' ] == 'y ' ) {
433433 // Move it, adding a date based suffix. A cronjob should purge or archive.
434434 $ thrash_maildir_path = $ old_maildir_path . '- ' . date ("YmdHis " );
435435 $ app ->system ->exec_safe ('mv ? ? ' , $ old_maildir_path , $ thrash_maildir_path );
@@ -480,7 +480,7 @@ function domain_delete($event_name, $data) {
480480 //* Delete maildomain path
481481 $ old_maildomain_path = $ mail_config ['homedir_path ' ].'/ ' .$ data ['old ' ]['domain ' ];
482482 if ($ old_maildomain_path != $ mail_config ['homedir_path ' ] && !stristr ($ old_maildomain_path , '// ' ) && !stristr ($ old_maildomain_path , '.. ' ) && !stristr ($ old_maildomain_path , '* ' ) && !stristr ($ old_maildomain_path , '& ' ) && strlen ($ old_maildomain_path ) >= 10 && !empty ($ data ['old ' ]['domain ' ])) {
483- if ($ mail_config ['mailbox_safe_delete ' ] == 'y ' ) {
483+ if ($ mail_config ['mailbox_soft_delete ' ] == 'y ' ) {
484484 // Move it, adding a date based suffix. A cronjob should purge or archive.
485485 $ thrash_maildomain_path = $ old_maildomain_path . '- ' . date ("YmdHis " );
486486 $ app ->system ->exec_safe ('mv ? ? ' , $ old_maildomain_path , $ thrash_maildomain_path );
0 commit comments