[ 
https://issues.apache.org/jira/browse/JSIEVE-19?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefano Bagnara resolved JSIEVE-19.
-----------------------------------

    Resolution: Fixed

I think I've found that jSieve applies comparators "changes" before invoking 
the method I rewrote.
So when a case-insensitive match is needed it simply call toUpperCase for both 
the string and the pattern and then calls the matches method. For simple sieve 
match strings this should be ok (there are no special chars that would change 
their meaning after the upperCase).

So, I fixed the class to make case sensitive checks.

I also added a test to make sure that ?, \?, * and \* in a sieve :matches 
string (in a script) are parsed as glob chars, while \\? and \\* match 
respectively ? and * .

I mark this as resolved. If anyone thinks this is not fixed correctly we'll 
reopen it.

> Open square bracket as first char in matching pattern does not work
> -------------------------------------------------------------------
>
>                 Key: JSIEVE-19
>                 URL: https://issues.apache.org/jira/browse/JSIEVE-19
>             Project: jSieve
>          Issue Type: Bug
>    Affects Versions: 0.2
>            Reporter: Stefano Bagnara
>            Assignee: Stefano Bagnara
>             Fix For: 0.2
>
>
> this rule
> if header :matches \"X-Caffeine\" \"[test]*\" {throwTestException;}
> does not match for 
> X-Caffeine: [test] something
> Removing the open square or moving it as the second char instead works.

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

Reply via email to