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

Stefano Bagnara resolved JSIEVE-74.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.5

Patch applied, thank you Vishal.

> Script parsing fails when the string contains a backslash
> ---------------------------------------------------------
>
>                 Key: JSIEVE-74
>                 URL: https://issues.apache.org/jira/browse/JSIEVE-74
>             Project: JAMES jSieve
>          Issue Type: Bug
>          Components: JSieve (Main)
>    Affects Versions: 0.3
>            Reporter: Boris Burtin
>            Assignee: Stefano Bagnara
>             Fix For: 0.5
>
>         Attachments: backslash-rule.sieve, patch.txt
>
>
> The following script fails to parse because one of the string literals 
> contains a backslash.  The parser also reports an error in the wrong line.
> require ["fileinto", "reject", "tag", "flag"];
> # test
> if allof (header :contains "to" "\\") {
>     keep;
>     stop;
> }
> # test2
> if anyof (header :contains "subject" "foo") {
>     keep;
>     stop;
> }
> org.apache.jsieve.parser.generated.TokenMgrError: Lexical error at line 14, 
> column 0.  Encountered: <EOF> after : "\") {\n    keep;\n    stop;\n}\n"

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to