Bug: mailbox delete: "Also delete mails" checkbox has no effect (Cloudron 10.0.5, mail 4.3.9)
-
When deleting a mailbox in the dashboard with the "Also delete mails" checkbox ticked, the mailbox is removed but its mail stays on disk under
/home/yellowtent/boxdata/mail/vmail/<address>. I noticed it on two servers (both Cloudron 10.0.5,cloudron/mail:4.3.9), for two different mailboxes.The eventlog only shows
mail.box.remove {"name":"info","domain":"..."}, and the directory's modification time is unchanged afterwards.Looking at the mail container, the route passes the flag on correctly:
routes/mail.jscheckstypeof req.body.deleteMails === 'boolean'and callsmailboxes.delMailbox(name, domain, { deleteMails: req.body.deleteMails }, auditSource). But inmailboxes.jsthe options argument is named_optionsand never used:delMailbox()deletes the database rows, the FTS index, the spamd dir and the sieve forwards, but nothing removes the maildir.Expected: with the checkbox ticked, the maildir of that address is removed (or the checkbox is hidden if this is intentional). For now I remove the leftover directory manually.
-
-
G girish has marked this topic as solved
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login