[ 
https://issues.apache.org/jira/browse/MAILBOX-280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15724985#comment-15724985
 ] 

Raphaƫl Ouazana commented on MAILBOX-280:
-----------------------------------------

True, this should be a JMAP issue as it violates only the JMAP Specifictions:
{quote}Outside of a phrase, white-space SHOULD be treated as dividing separate 
tokens that may be searched for separately in the message, but MUST all be 
present for the message to match the filter.{quote}

> String FilterCondition in getMessageList request should work correctly when 
> including white-spaces or hyphens
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: MAILBOX-280
>                 URL: https://issues.apache.org/jira/browse/MAILBOX-280
>             Project: James Mailbox
>          Issue Type: Bug
>            Reporter: Laura Royet
>
> When making a getMessageList request with a String FilterCondition containing 
> a white-space or an hyphen, the integration test becomes green even with 
> wrong ending word or one wrong word. 
> Examples:
> When the email contains "Openpaas-Linagora"
> a filtering on "Openpaassssss-Linagora"in the property "text" of 
> FilterCondition is matching. It is the same for the following String :
> "Openpaas-Linagoraaaaaaa", "bla OpenPaas", "OpenPaas anticonstitutionn".
> When the email contains "Test body"
> a filtering on "Testyyy body"in the property "body" of FilterCondition is 
> matching. It is the same for: "Testy bodyyyyy", "Test gakayanakj", "halabdp 
> body".
> Can be reproduced respectivly in tests 
> "messageWithComplicatedAttachmentShouldHaveItsEmailBodyIndexed()" in 
> "SetMessagesMethodTest.java" in "package 
> org.apache.james.jmap.methods.integration"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to