You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Robert Burrell Donkin (JIRA)" <se...@james.apache.org> on 2008/04/16 22:19:21 UTC

[jira] Resolved: (JSIEVE-8) I would be great to have sieve script validator that also validates commands mapping.

     [ https://issues.apache.org/jira/browse/JSIEVE-8?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Burrell Donkin resolved JSIEVE-8.
----------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 1.0)
                   0.2

My reading of the spec agres with Vladimir.

Added a new validator which checks for required correctness and then throws ParseException if it is not. 

This may be better if configurable...

> I would be great to have sieve script validator that also validates commands mapping.
> -------------------------------------------------------------------------------------
>
>                 Key: JSIEVE-8
>                 URL: https://issues.apache.org/jira/browse/JSIEVE-8
>             Project: jSieve
>          Issue Type: New Feature
>    Affects Versions: 0.2
>            Reporter: Vladimir
>            Assignee: Robert Burrell Donkin
>             Fix For: 0.2
>
>
> JSieve's parse validate only part of script. It doesn't validate commands mapping.
> Script will be valid according to parse method:
> require ["fileinto"]; 
> if address :contains ["To", "From"] "noone"{ 
>  fileinto_ "noneFolder"; 
> }
> but evaluate method will raise exception, 'cause there is no mapping to command: 
> fileinto_

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org