1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

how to delete old email?

Discussion in 'Plesk for Linux - 8.x and Older' started by lpittman, Aug 15, 2006.

  1. lpittman

    lpittman Guest

    0
     
    hi ...

    i have my email all setup to move any emails tagged with *** SPAM *** to a Spam folder .. this works great.

    now, the issue is my customers don't delete the damn emails ... *sigh*

    so, i need to setup a script that will delete any email that is 1 week old, or older .. any suggestions?

    thanks in advance ...

    luke
     
  2. lpittman

    lpittman Guest

    0
     
    Doing some more searching here and came up with the following:

    find /var/qmail/mailnames/*/*/Maildir/.Spam/cur -type f -ctime +7 | xargs rm

    anyone see any issues with running this via a cron on a CentOS 4.2/Plesk 8.0.1 system?

    Thanks ...

    Luke
     
  3. lpittman

    lpittman Guest

    0
     
    bumptickle
     
Loading...