On Thu, Oct 9, 2008 at 6:31 PM, Boris Burtin <[EMAIL PROTECTED]> wrote:
> I noticed that SieveNode.getValue() returns the escaped version of the value,
> with the extra quotes and backslashes. So for the following script:
>
> # TestFilter testQuoteEscape
> if anyof (header :contains "subject" "a \" b") {
> fileinto "TestFilter testQuoteEscape";
> }
>
> I get
>
> "a \" b"
>
> as opposed to
>
> a " b
>
> Is this intentional, or a bug?
it's probably something i'd describe as consequential (others may
remember the original intention)
the tokeniser does not unescape quoted strings so this is handled by
the visitor
> Seems like it would be more intuitive and convenient if the framework to
> handled the unescaping for me.
i think that it should be possible to push unescaping logic into the
setter of ASTstring by altering the javacc files. not sure how easy it
would be, though.
opinions on whether this would be an improvement?
- robert
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]