james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boris Burtin (JIRA)" <server-...@james.apache.org>
Subject [jira] Created: (JSIEVE-74) Script parsing fails when the string contains a backslash
Date Wed, 28 Oct 2009 00:02:59 GMT
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


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


Mime
View raw message