<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19120"></HEAD>
<BODY>
<DIV><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012>Hello,</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Courier New"><SPAN class=777401809-11052012>I think I
have some confusion over the order in which rulesets are
parsed.</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Courier New"><SPAN class=777401809-11052012>I have a
scan.messages.rules which starts with some exceptions, such
as:</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Courier New"><SPAN class=777401809-11052012>From: <A
href="mailto:sender@foo.com">sender@foo.com</A> And To: <A
href="mailto:*@bar.com">*@bar.com</A> no</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012></SPAN></FONT><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Courier New"><SPAN class=777401809-11052012>then further
down the file the general rule</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012></SPAN></FONT><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Courier New"><SPAN class=777401809-11052012>To:
*@bar.com yes</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Courier New"><SPAN class=777401809-11052012>and a
default rule</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012></SPAN></FONT><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012>FromOrTo: default
no</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012></SPAN></FONT><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Courier New"><SPAN class=777401809-11052012>I've been
working on the assumption it is parsed in order, so that email matching the
exceptions should not be scanned, the majority of mail for bar.com would be
scanned and then anything left is ignored.</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Courier New"><SPAN class=777401809-11052012>However, it
appears that the exceptions still end up being scanned (ie in the above
example mail from <A href="mailto:sender@foo.com">sender@foo.com</A> to
bar.com is being scanned). I can't find anything in README or EXAMPLES which
gives guidance on this. Nor can I find it in the book. Finally,
my google-fu is apparently not strong in this case.</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Courier New"><SPAN class=777401809-11052012>What I did
find in the book was the concept of nested rulesets. I wonder if I should be
using something like.</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Courier New"><SPAN class=777401809-11052012>To:
*@bar.com /path/to/rules/bar.scan.rules</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Courier New"><SPAN class=777401809-11052012>and then in
bar.scan.rules</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Courier New"><SPAN class=777401809-11052012>From:
sender@foo.com no</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012>FromOrTo: default
yes</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Courier New"><SPAN class=777401809-11052012>Any advice
appreciated.</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Courier New"><SPAN
class=777401809-11052012>Stef</SPAN></FONT></DIV></BODY></HTML>