Current time: 11-24-2024, 07:29 PM Hello There, Guest! (LoginRegister)


Poll: Are you looking for similar solution ?
This poll is closed.
Yes 81.82% 9 81.82%
No 18.18% 2 18.18%
Total 11 votes 100%
* You voted for this item. [Show Results]

Post Reply 
Automatic - Move SPAM to Junkmail folder.
Author Message
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #11
RE: Automatic - Move SPAM to Junkmail folder.
To delete the spam, I am using this script, it shoulk work also on courier, since the location for the mail is the same.
Code:
# Delete spam older than x days
22 2 * * * /usr/bin/find /var/mail/virtual/ -type f -wholename "/var/mail/virtual/*/.Junk/*" -mtime +5 -exec rm -v {} \; >/tmp/spam_deleted 2>/tmp/spam_deleted_errors
22 8 * * * /usr/bin/find /var/mail/virtual/ -type f -wholename "/var/mail/virtual/*/.Trash/*" -mtime +5 -exec rm -v {} \; >/tmp/trash_deleted 2>/tmp/trash_deleted_errors
(This post was last modified: 05-04-2010 05:13 PM by aseques.)
05-04-2010 05:13 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Automatic - Move SPAM to Junkmail folder. - Nuxwin - 04-19-2010, 04:09 AM
RE: Automatic - Move SPAM to Junkmail folder. - Nuxwin - 04-21-2010, 09:12 PM
RE: Automatic - Move SPAM to Junkmail folder. - aseques - 05-04-2010 05:13 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)