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] Commented: (JSIEVE-57) Parse failure with multi-line form when the line begins with a dot
Date Mon, 20 Jul 2009 22:51:14 GMT

    [ https://issues.apache.org/jira/browse/JSIEVE-57?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733388#action_12733388
] 

Boris Burtin commented on JSIEVE-57:
------------------------------------

Looks like this problem is bigger than I thought.  I can't even get a simple form without
dot-stuffing 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)


> Parse failure with multi-line form when the line begins with a dot
> ------------------------------------------------------------------
>
>                 Key: JSIEVE-57
>                 URL: https://issues.apache.org/jira/browse/JSIEVE-57
>             Project: JAMES jSieve
>          Issue Type: Bug
>          Components: JSieve (Main)
>    Affects Versions: 0.2
>            Reporter: Boris Burtin
>
> I'm having some trouble with dot-stuffing in a multi-line form.  When I try to parse
the script below, I get a syntax exception on the line that starts with "..":
> org.apache.jsieve.parser.generated.TokenMgrError: Lexical error at line 8, column 1.
 Encountered: "." (46), after : ""
> require ["fileinto", "reject", "tag", "flag"];
> # reply filter
> if anyof (header :contains "subject" "reply") {
>     reply ["user2@cosmonaut.zimbra.com", "user3@cosmonaut.zimbra.com"] "text:"
> This is the first line
> This is the second line
> ..This is a line that begins with a dot
> And here's a dot by itself:
> ..
> The end
> .
> ;
>     stop;
> }

-- 
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