I just tested this and the answer is that the processing will stop immediately.
/Roger
Scott, what will happen if all entries in a filter file have the
weight 0 and I use MAXWEIGHT 0? Will the processing stop immediately
or at the first match?
/Roger
--
-
I will update the script so that it can handle both maxweight and an
optional exclude file.
I don't think that a variable for setting the weight of rows/entries
different from the maxweight is necessary, since the purpose is to
stop processing at a match, so the maxweight option would set the
As for the maxweight, perhaps someone can do it better, but this works for me:
In the variables ection add:
set V_Maxweight=20
In the code after if not "%v_weight%"=="" echo SKIPIFWEIGHT %v_weight%>>
surbl.filter.tmp
add:
if not "%v_maxweight%"=="" echo MAXWEIGHT %v_maxweight%>> surbl.filter.tmp
Matt,
Thanks for the suggestions.
With a maxweight variable it would also make sense to add a body
weight variable (so that this weight easily can be set to a value
other than 0). At present, the processor load shouldn't be any
problem, however, since the number of entries is rather few. This
Roger,
Thanks for the fine work. I finally got around to setting this up after
figuring out that it wasn't thousands of URL's long and my server seems
to be handling it well enough for now.
I have two suggestions for the script.
1) Add a MAXWEIGHT variable. If you score each line at say 4 po
Roger, this version works on my NT4 machine like a champ. Thanks again.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Roger Eriksson
Sent: Thursday, April 15, 2004 10:57 AM
To: [EMAIL PROTECTED]
Subject: [Declude.JunkMail] Updated SURBL filter script