Using Nodeworx or Siteworx, is there any way to AUTOMATE the deletion of SPAM detected by web assassin? I would like to be able to allow SPAM to remain in each emailer’s spam folder for a week or so before automatically deleting it… but, if it’s not able to delay it, I would still prefer being able to automatically delete it immediately.
If it can be done with a cron, would someone be able to tell me what the cron text would be?
[QUOTE=tiger;15712]In SiteWorx’s “Spam Settings” page, you can find the option “Delete Spam scored higher than this value” (the default value being 15)
Aren’t you using InterWorx v3?[/QUOTE]
This would prevent it from ever coming into the user’s inbox, what he is asking is to have it be removed from the spam folder. Here is a script I run for one of my clients.
#!/bin/bash
cd /home/account/var/account.com/mail
clear
echo "Start"
date
echo ""
echo ""
for X in jim bob sandy postmaster
do
if [ -e "/home/account/var/account.com/mail/$X/Maildir/.Spam" ]; then
echo "Cleaning Spam Folder for $X"
./cleanup-maildir --maildir-root="/home/account/var/account.com/mail/$X/Maildir" --age=7 delete 'Spam'
else
echo "No Spam Folder for $X"
fi
echo ""
done