On Wed, 6 Nov 2002, 3:27pm (+0200), xxx wrote:

> Instead saving spam to a file, how can I change the following to just delete
> spam?
> 
> (procmailrc)
> :0 Wc
> | razor-check
> :0 Wa
> /var/spool/razor/spam

Change the last line to /dev/null.

However, I think if you read this list for a while, you'll realize that 
razor, as good as it is, gets more than a few false positives.  It would 
be quite short sighted (to put it nicely) to automatically dump anything 
flagged by razor to /dev/null.

I'm going to go out on a limb here and theorize that the reason you want 
to do this is that you don't want to have check and clear out that mailbox 
constantly.  Given the choice between a constantly expanding file and 
nothing, you choose nothing.  I'm going to make a suggestion for in 
between:  replace the last line with:

{
  # Change this number to the number of messages you want to keep around
  RAZOR=32
  # Change this path to the name of a _directory_ where you want to 
  # store razor hits.  Should be relative to $PMDIR
  RAZOR_PATH=razor-spam

  # Clear out any spam messages in excess of $RAZOR
  :0 ic :.razor-spam.lock
  | [ -e $RAZOR_PATH ] || mkdir $RAZOR_PATH && cd $RAZOR_PATH && rm -f dummy `ls -t 
msg.* | sed -e 1,${RAZOR}d`
  # Delivery
  :0 W
  $RAZOR_PATH
}

Note that this code is largely stolen from the actual procmail man pages, 
but I can't remember exactly where, so I'm not going to cite chapter and 
verse...

-- 
Edward Hennis ___ [EMAIL PROTECTED] ___ http://www.vaxer.net/~eah
|\ /|        I'd wish the bugs of a thousand camels
| O |        upon Office 97, but it seems as if
|/_\|        Microsoft already beat me to it.



-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Razor-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/razor-users

Reply via email to