-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 02 January 2004 09:56, Evan Platt wrote: > At 09:14 AM 1/2/2004, you wrote: > >I have an interest in flagging email as spam at a certain threshold and > >deleting at another threshold. > >Has anyone done this? > > I'd never consider automatically deleting messages, perhaps a few folders, > i.e. 'Possibly spam' (Spam under a score of 7) 'Definitely spam' (spam over > a score of 7). > > > >I am using sendmail, spamass-milter, and spamd - latest and greatest. > >I suppose I could set up another milter calling a a different spamd daemon > >with a different config, but that's quite a hack and an ugly one at > >that. Maybe another, different, milter ? > > Would be pretty hard to configure SA to delete messages, considering it has > no capability to do so. > > >Any suggestions ? > > procmail perhaps? >
It is a little bit of work in procmail ,but I have done it. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SHELL=/bin/sh PATH=/usr/local/procmail/bin:/usr/bin:/bin MAILDIR=/var/mail LOGFILE=/var/log/procmail VERBOSE=on DEFAULT=douglas GROUP=more DOMAIN=email.server.com MAX=10 SPAMDUMP=/dev/null EMAILSIZE = 25000 :0 # Note: this is in BYTES * $ B ?? < $EMAILSIZE { :0fw | /usr/local/bin/spamc -p 783 -d spamd.server.net -H -u [EMAIL PROTECTED] :0 h * ^X-Spam-Level:\/.* { LEVEL = "$MATCH" } :0 * LEVEL ?? ()\/\*.* { LEVEL = $MATCH } :0 * 1^1 LEVEL ?? . { } LENGTH = $= :0 * $ -$MAX^0 * $ $LENGTH ^0 { :0: $SPAMDUMP } } :0E { :0fwh | formail -A"X-Spamd-Size: Email exceed max size for spamd($EMAILSIZE)" } ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Douglas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE/9bOmSpWn8R0Z08URAoetAJ4ucchC0BJurKUcCBTXN/0e8wHL7wCdGfIQ C3SreuD6kgcJM+hr9mM5rnk= =zCtJ -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk