• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Script to delete old mails

M

Mr.Yes

Guest
Hi,

i daily run a bash script to delete mails older then 90 days on our machines , but today i discovered that this code wrongly do not delete for example emails dated 01-25-2005, 01-27-2005 why?? is any good programmer can help me on this?


PHP:
#!/bin/bash

# clean mailnames msg older then 90 days from now

find /var/qmail/mailnames/*/*/Maildir/cur/ -type f -ctime +90 -exec rm -f '{}' \;
find /var/qmail/mailnames/*/*/Maildir/new/ -type f -ctime +90 -exec rm -f '{}' \;


thanx
 
sorry i don't understand your post, please, can u write more expilicit? :)
 
Back
Top