I have a code which selects all emails that start with "scan" and delete the sent emails in the folder that are a day or more older as seen below
I want to be able to now the Select all emails in my domain except for the ones that start with "scan" but I do not know how to add the exception code or work it out where it can select other emails except for those ones.
Any help would be appreciated.
Thank you.
find /home/admin/mail/mov.com/scan*/.Sent -type f -mtime +1 -exec rm {} \;
I want to be able to now the Select all emails in my domain except for the ones that start with "scan" but I do not know how to add the exception code or work it out where it can select other emails except for those ones.
Any help would be appreciated.
Thank you.
Last edited by a moderator: