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 "Boris Burtin (JIRA)" <se...@james.apache.org> on 2009/11/17 01:47:39 UTC

[jira] Updated: (JSIEVE-74) Script parsing fails when the string contains a backslash

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

Boris Burtin updated JSIEVE-74:
-------------------------------

    Attachment: backslash-rule.sieve

Sieve script that causes the parsing problem.

> 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
>         Attachments: backslash-rule.sieve
>
>
> 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.
-
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