> 
> Hello,
> 
>       Sorry if this isn't the place to ask, but I've looked 
> all over and haven't managed to find a clear solution. I'm 
> looking for a way to have items that have been in the user's 
> .Trash folder for a certain period of time (lets say 30 days 
> or older) removed automatically. I thought there must be 
> built-in functionality for this, or a script someone has come 
> up with to manage this sort of thing. I've see a squirrelmail 
> plugin that does it based on number of logins or every x 
> number of days, but it empties the whole trash and doesn't 
> check each message's age individually.


I did a little bit more testing, does anyone see any problems with running
the following command to accomplish my goal?


find ./usr/local/vpopmail/domains -type f -mtime +365 | grep .Trash/cur |
xargs rm



This example being more on the extreme end by looking for messages over a
year old, but you get the idea.

Any input would be helpful!

Matt Rauch


!DSPAM:509ac09133997271681359!

Reply via email to