[
https://issues.apache.org/jira/browse/JSIEVE-57?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734527#action_12734527
]
Robert Burrell Donkin commented on JSIEVE-57:
---------------------------------------------
I think that the problem is that commands should not be quoted, so I think that
the example above should be:
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;
}
<blockquote cite='http://www.ietf.org/rfc/rfc3028.txt'>
9. Extended Example
The following is an extended example of a Sieve script. Note that it
does not make use of the implicit keep.
#
# Example Sieve Filter
# Declare any optional features or extension used by the script
#
require ["fileinto", "reject"];
#
# Reject any large messages (note that the four leading dots get
# "stuffed" to three)
#
if size :over 1M
{
reject text:
Please do not send me large attachments.
Put your file on a server and send me the URL.
Thank you.
.... Fred
.
;
stop;
}
#
</blockquote>
> 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 ["[email protected]", "[email protected]"] "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: [email protected]
For additional commands, e-mail: [email protected]