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/07/29 00:02:14 UTC
[jira] Reopened: (JSIEVE-57) Parse failure with multi-line form
when the line begins with a dot
[ https://issues.apache.org/jira/browse/JSIEVE-57?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Boris Burtin reopened JSIEVE-57:
--------------------------------
Parsing of multi-line forms is working now, but I think dot-stuffing is still busted. For the following script:
require ["fileinto", "reject", "tag", "flag"];
# reply
if anyof (header :contains "subject" "reply") {
reply text:
This is line 1.
This is line 2.
.......... This is line 3.
.
;
stop;
}
I get the following value
This is line 1.
This is line 2.
. This is line 3.
If I understand RFC 3028 section 2.4.2 correctly, shouldn't I get 9 dots when the line in the script is prefixed with 10 dots? Currently, I get only 1.
> 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
> Assignee: Robert Burrell Donkin
> Fix For: 0.4
>
>
> 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