I want to delete Mails in Piler

NethServer Version: 8
Module: Piler

Hello friends,

I have just installed Piler and i am playing around with it. Now I have the question how to get into the config-site.php file to enter “$config[‘ENABLE_DELETE’] = 1;”? My goal as an auditor is to be able to delete mails in the archive that I no longer need.

Regards…

Uwe

1 Like

To edit config-site.php:

runagent -m piler1 nano ../templates/config-site.php

We’re editing the template so it persists service restarts and UI changes but an update of piler removes the changes.

3 Likes

Thanks

it doesnt survice a save from UI or restart of the service
How can this be fixed ?

Maybe this can be a setting in the UI ?
Much easier for most user. The UI in NS8 is btw very limited within the most apps for changing settings/options

2 Likes

I updated my previous post to edit the template instead of the config file directly.
Unfortunately it doesn’t survive app updates.
Maybe the piler app can be updated to save the edited templates in a volume like it’s done in sogo. @stephdl do you think it’s possible?

I agree that there are still missing options in the UI but also keep in mind:

  1. NS8 tries to keep it simple. Adding every option to the UI could lead to a complex UI.
  2. The resources are limited. First comes bug fixing, then the UI features.
2 Likes

Good morning @mrmarkuz and @MadPatrick

This is not a practicable solution. Restarting NS 8 will reset everything. And the previously deleted mails are also back.

I think you executed the old command, I updated the post recently. Via the template it should survive restarts but no app updates.

runagent -m piler1 nano ../templates/config-site.php

2 Likes

Sorry,

i must not have been fully awake yet. Now it’s working.

1 Like

Ok, deleting now works. But are the mails really gone from the relevant directory? Probably not. Because I can still restore a mail deleted in Piler.

we could think on it, we have a new versions of piler to follow, I could do it at this time

2 Likes