usermin cli commands

I would like to see some usermin cli features added such as auto-clear settings which is really needed because i have a few clients that have clients that do not empty trash/sent/spam/junk folders.

Status: 
Closed (fixed)

Comments

Are you looking for a way to setup auto-clearing of all users spam and trash folders from a single location?

correct and also Junk folder since thats the folder TB uses and creates for imap connections

There is an option at Server Configuration -> Spam and Virus Delivery to auto-delete spam for all users in a domain after some number of days.

Also, users can setup auto-clearing themselves in Usermin, at Manage Folders -> Auto-clearing.

I know about the spam setting its the users that dont want to use the auto-clearing.

They use thunderbird or squirrelmail to read there emails and don't both to delete anything that's why I was asking for a cli to do this.

If I was to add an option to auto-clear trash folders as well, would that solve this problem for you?

There is no CLI API in Usermin currently to do this..

I would be happy to see that for trash / sent and both spam folders spam/Junk

Ok, I will look into adding this in the next release.

This has been implemented for inclusion in Virtualmin 3.96

Automatically closed -- issue fixed for 2 weeks with no activity.

OK I see this in the Spam and Virus Delivery section under the domain menu however you missed adding it to the command line... you have a modify-spam switch but its missing the modify-trash switch so can you add that so I can do global changes ?

Sorry about that - I completely forgot to add this to the API.

I have just implemented it though, for inclusion in the next release. Let me know if you'd like a patch to get it sooner.

Could you attach the patch please ?

Sure .. just save the attached file as /usr/share/webmin/virtual-server/modify-spam.pl

Automatically closed -- issue fixed for 2 weeks with no activity.