(I am a beginner at Linux and cPanel) My main goal is to make a cron job or script or command that allows me to automatically delete spam emails older than 2 weeks with all emails that start with "scan" and I have seen in other forms commands such as
Code:
This allows me to only delete 1 specific emails spam folder at but I want to be able to delete all spam folders under all emails that start with "scan" and I could either use cron job or make a script to run in the terminal.
Any help is appreciated,
thank you.
Code:
Spam = /home/CPANELACCOUNTNAME/mail/DOMAIN.COM/EMAILNAME/.spam/This allows me to only delete 1 specific emails spam folder at but I want to be able to delete all spam folders under all emails that start with "scan" and I could either use cron job or make a script to run in the terminal.
Any help is appreciated,
thank you.
Last edited by a moderator: