Andy,
Using 'combo' filters is the way to go here. It does work, and while
extra functionality would ease such things, I have always been required
to work within the framework and as a result I use many sets of combo
filters to do exactly what you were trying to do here in one file.
It is good that END results in no hit for the filter. If this changed,
it would screw up my system in a big way, and probably result in me
blocking virtually all legitimate E-mail. There is a definite need for
a function that aborts a filter entirely, and this is what Scott
provided with END.
A STOP function would not be a bad idea, and to create ABORT in the
place of END (same thing, different name), and depricating END as Andrew
suggested in 2004 would make sense as far as confusion goes and also to
add extra functionality, but that is in fact a feature request.
Matt
Andy Schmidt wrote:
>> Why the requirement of single filter? <<
Clarity? It's easier for me to follow a logic, if it's enclosed in a
SINGLE source document (= filter).
If the logical is spread over multiple source documents, I have to
first scour the Global.CFG to see which filters are active,
then inspect each one to see if by chance any one of them might have
any effect.
Best Regards
*/Andy Schmidt/*/
/
Phone: +1 201 934-3414 x20 (Business)
Fax: +1 201 934-9206
------------------------------------------------------------------------
*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of
*John T (Lists)
*Sent:* Friday, November 17, 2006 12:57 PM
*To:* [email protected]
*Subject:* RE: [Declude.JunkMail] Filter 'END' statement in 4.3.14
flushes WEIGHT?
Why the requirement of single filter?
I have different combo filters created like this:
ComboFilterA
REM If testa and testb fail, and if testc or testd fail, add 10
ENDONFIRSTHIT
TESTSFAILED END NOTCONTAINS testa
TESTSFAILED END NOTCONTAINS testb
TESTSFAILED 10 CONTAINS testc
TESTSFAILED 10 CONTAINS testd
ComboFilterB
REM If testc and testd fail, and if teste or testf fail, add 20
ENDONFIRSTHIT
TESTSFAILED END NOTCONTAINS testc
TESTSFAILED END NOTCONTAINS testd
TESTSFAILED 10 CONTAINS teste
TESTSFAILED 10 CONTAINS testf
IMHO, that is a much cleaner and neater way to do it. You could also
use MAXWEIGHT instead of ENDONFIRSTHIT and then assign different
weights to different test.
**John T**
**eServices For You**
****
*"Life is a succession of lessons which must be lived to be understood."*
*Ralph Waldo Emerson (1802-1882)*
**
-----Original Message-----
*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of
*Andy Schmidt
*Sent:* Friday, November 17, 2006 9:29 AM
*To:* [email protected]
*Subject:* RE: [Declude.JunkMail] Filter 'END' statement in 4.3.14
flushes WEIGHT?
Hi John,
>> Was never changed. <<
Please read the URL I posted:
http://www.mail-archive.com/[email protected]/msg14009.html
As you can tell, ORIGINALLY it did return the weight. He was thinking
of it even FAILING the test (if there was a weight).
>> What you should have been using is MAXWEIGHT at the top, or
STOPATFIRSTHIT. <<
Kindly, please read the sample I had posted (bottom of this message).
Your reply doesn't address the issue of trying to make some sections
of a test conditional. Example, the goal is to return either 1 or 2 or
3 if test1 or test2 occur with test3 - and to only add test4 and
test5, if test3 is not true.
SKIPIFWEIGHT 20
MAXWEIGHT 3
TESTSFAILED 1 CONTAINS test1
TESTSFAILED 1 CONTAINS test2
TESTSFAILED END CONTAINS test3
TESTSFAILED 1 CONTAINS test4
TESTSFAILED 1 CONTAINS test5
etc etc
Please demonstrate how MAXWEIGHT or STOPATFIRSTHIT would do this in a
single filter?
Best Regards
*/Andy Schmidt/*/
/
Phone: +1 201 934-3414 x20 (Business)
Fax: +1 201 934-9206
---
This E-mail came from the Declude.JunkMail mailing list. To
unsubscribe, just send an E-mail to [EMAIL PROTECTED], and
type "unsubscribe Declude.JunkMail". The archives can be found
at http://www.mail-archive.com.
---
This E-mail came from the Declude.JunkMail mailing list. To
unsubscribe, just send an E-mail to [EMAIL PROTECTED], and
type "unsubscribe Declude.JunkMail". The archives can be found
at http://www.mail-archive.com.