Usermin Mark as SPAM and Delete

SYSTEM INFORMATION
OS type and version CentOS Linux 7.9.2009
Webmin version 2.101
Usermin version 2.001
Virtualmin version 7.7
Theme version 21.04
Package updates All installed packages are up to date

image

I assume that “Mark as spam and delete” first trains Spam-Assassin and then deletes the message. I believe I used to see a message that said something like “learned 1 token” when I used to do this individually on messages.
What I currently do is move all suspect emails into a separate folder and then select everything in the folder and hit “Mark as spam and delete”. I don’t get any “learned” message back.

Is there a way to run the “Mark as spam and delete” command on all messages in a folder using a Cron job? This would automate what I am currently doing manually.

Still trying to figure this out.

Does this command, found when viewing an individual message

and displays this result when run


Do the same thing as this command which is available when viewing a list of messages

Screenshot 2023-08-09 Mark as Spam and Delete

This second command does not display the learned token message.

I suggested an alternate method using the Automatic Folder Clearing Mechanism and Submitted it as a Feature Request