I had to take a break for a while, and am looking at multi-line forms again.
Can someone please send me an example of the multi-line form syntax? I can't
even get a simple form to work. Parsing this simple script:
require ["fileinto", "reject", "tag", "flag"];
# reply
if anyof (header :contains "subject" "test reply") {
reply "text:"
This is the first line
This is the second line
.
;
stop;
}
results in
org.apache.jsieve.parser.generated.TokenMgrError: Lexical error at line 8,
column 1. Encountered: "." (46), after : ""
at
org.apache.jsieve.parser.generated.SieveParserTokenManager.getNextToken(SieveParserTokenManager.java:609)
at
org.apache.jsieve.parser.generated.SieveParser.getToken(SieveParser.java:625)
at
org.apache.jsieve.parser.generated.SieveParser.jjtreeOpenNodeScope(SieveParser.java:10)
----- "Robert Burrell Donkin" <[email protected]> wrote:
> On Thu, Jul 2, 2009 at 6:17 PM, Boris Burtin<[email protected]>
> wrote:
> > I can see wanting more control at the parse tree level. Maybe have
> two API's on the Node or AST class, one that returns the raw text and
> another that returns the unescaped version? By the time that the
> value gets returned as an Argument, I would expect that the escaping
> has been stripped out.
>
> +1
>
> > I filed JSIEVE-57 for the parsing bug.
>
> cool
>
> - robert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]