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

Norman Maurer reassigned JSIEVE-74:
-----------------------------------

    Assignee: Norman Maurer

> 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: Norman Maurer
>         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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to