Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Bug: mailbox delete: "Also delete mails" checkbox has no effect (Cloudron 10.0.5, mail 4.3.9)

Bug: mailbox delete: "Also delete mails" checkbox has no effect (Cloudron 10.0.5, mail 4.3.9)

Scheduled Pinned Locked Moved Solved Support
mail
2 Posts 2 Posters 35 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • imc67I
    imc67I
    imc67
    translator
    wrote last edited by
    #1

    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.js checks typeof req.body.deleteMails === 'boolean' and calls mailboxes.delMailbox(name, domain, { deleteMails: req.body.deleteMails }, auditSource). But in mailboxes.js the options argument is named _options and 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.

    1 Reply Last reply
    4
    • girishG
      girishG
      girish
      Staff
      wrote last edited by
      #2

      Thanks, I have fixed the regression.

      1 Reply Last reply
      1
      • girishG 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
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Bookmarks
      • Search