Fix Mailbox destroyer
Closed, ResolvedPublic


I noticed that the Mailbox destroyer does not work. It seems there is a missing function.

Here my session:

# ./cli/destroy-mailbox
Are you F*****G sure to DESTROY the mailbox '' FOREVER? [y/n]
PHP Fatal error:  Uncaught Error: Call to undefined function sanitize_subdirectory() in include/class-Domain.php:77
Stack trace:
#0 include/class-Domain.php(218): Mailbox->getDomainDirname()
#1 include/class-Mailbox.php(144): Mailbox->getDomainMailboxesPath()
#2 include/class-MailboxDestroyer.php(49): Mailbox->getMailboxPath()
#3 scripts/mailbox/destroy.php(97): MailboxDestroyer::destroy(Object(Mailbox))
#4 {main}
  thrown in include/class-Domain.php on line 77

Event Timeline

marco.set triaged this task as High priority.May 12 2020, 11:15
marco.set created this task.
marco.set created this object in space S1 Public.

Apologies! Thank you for the report. Fixed.

valerio.bozzolan reopened this task as Open.May 21 2020, 08:55

Re-open again for another reason:

Cannot delete or update a parent row: a foreign key constraint fails (`log`, CONSTRAINT `fk-aw34w3_log-mailbox` FOREIGN KEY (`mailbox_ID`) REFERENCES `mailbox` (`mailbox_ID`))