Hello All, I needed a way to allow users to turn off and on spam deleting via our web interface which interacts with sql user_prefs. I came up with something that works and I just wanted to share it with the community. (I may not be the first person to do this but at least I _tried_ to give back, right?) The idea is simply to add a test to my local.cf that catches EVERY email. The default score for this is 0. Then I use the sql user_prefs to change this test's score to -0.1 for anyone that wishes to have their SPAM deleted automatically.
full DELETE_SPAM /.*/ describe DELETE_SPAM Your preferences say you want all spam deleted. score DELETE SPAM 0 Then, I add a bit to my .procmailrc like so: DROPPRIVS=yes :0fw | spamc -u [EMAIL PROTECTED] -d ip.add.re.ss :0 * ^X-Spam-Status: Yes.*DELETE_SPAM /dev/null This has worked great so far and I just wanted to share this in case anyone else was looking to do the same. My original thought was to write a web interface to modify the .procmailrc but after some thought, I realized that would be too complex for my tastes. If anyone has any suggestions or comments, they are welcomed. cheers, Colin Colin A. Bartlett Kinetic Web Solutions www.kineticweb.biz ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk