Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

delete content of spam folder perodically

Status
Not open for further replies.
Joined
Sep 5, 2004
Messages
55
Location
CH
Hi all

i use qmail-scanner-1.25-st-qms with spamassassin 3.0.4 and procmail 3.22 to filter out spam messages on my debian mailserver

now everything is working fine, the mails with the score higher than the required hits will be filtered by sa and then moved into a separate folder called ".spam" underneath the maildir directory of the mailbox with help of procmail

Now my question is the following:

how can perodically (perhaps with a cronjob) the content of the .spam Folder?

thanks for your help

 
into crontab

*/30 * * * * root rm -f /home/user/Maildir/.spam/*

Or whatever schedule suits you

D.E.R. Management - IT Project Management Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top