#8 Rule Continuation

closed-invalid
sieve (22)
5
2003-05-13
2003-05-13
Anonymous
No

Hi all.

I have just started using SmartSieve, so I may be
compleatly wrong here (sorry if I am).

When creating/ editing a rule, there is the following
check box near the top "Check message against next rule
also".

To me this suggests that if unchecked, no more rules
will be prossed (I beleive the "stop" action should be
placed in the script?), however this does not appear to
be the case.

I edited the rules by hand, and placed a stop script
like so...

----------------Before------------------------
require ["fileinto"];

if allof (header :contains "subject" "SEC-Order :
Furbies.com") {
fileinto "INBOX/SECPay";
}

fileinto "INBOX/Bobby Joe";

----------- After --------------------
require ["fileinto"];

if allof (header :contains "subject" "SEC-Order :
Furbies.com") {
fileinto "INBOX/SECPay";
stop;
}

fileinto "INBOX/Bobby Joe";

-------------end examples-----------------

After adding the stop script it worked as one would
expect, any mail with "SEC-Order : Furbies.com", is
moved to INBOX/SECPay, every thing else is moved to
"INBOX/Bobby Joe".

Am I missing some thing?

Douglas Furlong

Discussion

  • Stephen Grier

    Stephen Grier - 2003-05-13

    Logged In: YES
    user_id=607130

    This is not a bug, but a limitation. The 'Continue checking
    against next rule' option causes the message to be checked
    against the following rule condition. It does not control
    whether the script is stopped.

    Basically, if this is not selected, the following rule will
    start with an 'elsif', so that it will not be matched if the
    current condition did. If this is selected, the next rule
    will start with an 'If'.

    SmartSieve does not currently support the stop action. You
    probably want to try deselecting the 'continue checking'
    option, and match against the regexp ".*" in the second rule.

     
  • Stephen Grier

    Stephen Grier - 2003-05-13
    • status: open --> closed-invalid
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks