Multiple actions in a ruleset

Julian Field mailscanner at ecs.soton.ac.uk
Wed Oct 6 20:22:17 IST 2004


<x-flowed>
At 20:16 06/10/2004, you wrote:
>Julian Field wrote:
> > At 21:25 05/10/2004, you wrote:
> >> I just want to clarify the syntax if I want to have a ruleset rule
> >> that has multiple actions.  For example, a domain that wants their
> >> spam quarantined, but still receive a notification.
> >>
> >> The ruleset I think to do this would be:
> >>
> >> To: domain.com          store notify
> >>
> >> I just want to confirm the syntax for multiple actions like this...
> >> Do I separate them w/a space as I have here, or do I use a comma,
> >> like this:
> >>
> >> To: domain.com          store,notify
> >
> > You need to have a space in between them. Extra spaces and commas are
> > fine too, but there must be at least one space. So
> >          store, notify
> > and
> >          store notify
> > are okay, but
> >          store,notify
> > is not.
>
>Will this work for actions with 2 conditions?  I am having problems with
>rules with 2 conditions and multiple actions.  MailScanner complains about
>there being a syntax error in the file.  But I don't get a syntax error if I
>just have one action.
>
>Directly from the EXAMPLES file (#8):
>
>From: trapme.com and To: abuse@*     deliver
>
>works just fine but:
>
>From: trapme.com and To: abuse@*     store deliver
>
>gives a syntax error.  Is this supposed to work, or am I doing something
>wrong?  I was running MailScanner 4.29.7, but upgraded to 4.34.8 and I still
>get the same problem.  Thanks.

Try using store,deliver instead. Sounds like a bugette in the ruleset
compiler. Trying to spot those "and" conditions is not as easy as it looks
when you can't predict what might be the results of the rule.
--
Julian Field
www.MailScanner.info
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support
Buy the MailScanner book at www.MailScanner.info/store

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
</x-flowed>



More information about the MailScanner mailing list