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

Is my syntax wrong, or did I stumble onto a parsing bug? Another issue I ran 
into is that when parsing doesn't fail, the argument I get back has the initial 
CRLF and the trailing ". CRLF". Seems like the parser should return the 
unescaped content, instead of expecting the application code to handle the 
unescaping. 

Thanks in advance, 

Boris 

Reply via email to