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

Rémi Kowalski commented on JAMES-3180:
--------------------------------------

This PR also include another test which demonstrate that if we use logical 
operators to write it.

 

{{`.body("[[\"getMessageList\", 
\{\"filter\":{\"operator\":\"AND\",\"conditions\":[{\"inMailboxes\": [\""+ 
mailboxId.serialize() +"\"]},\{\"isUnread\":\"true\"}]}}, \"#0\"]]")`}}

{{}}
Then the mailbox filter is ignored.
Another issue have been created to fix this behavior : 
https://issues.apache.org/jira/browse/JAMES-3182

> Add test to demonstrate that  unread messages within a mailbox can be fetched
> -----------------------------------------------------------------------------
>
>                 Key: JAMES-3180
>                 URL: https://issues.apache.org/jira/browse/JAMES-3180
>             Project: James Server
>          Issue Type: Test
>          Components: JMAP
>    Affects Versions: 3.6.0
>            Reporter: Rémi Kowalski
>            Priority: Major
>              Labels: test
>
> Which will be the query for `mark all as read` on the jmap client
> The goal of this PR is to write a unit test to demonstrate that the query 
> used during mark as read is working.
> ```
> .body("[[\"getMessageList\", {\"filter\": {\"inMailboxes\": [\""+ 
> mailboxId.serialize() +"\"], \"isUnread\":\"true\"}}, \"#0\"]]")
> ```
> DOD
> Write a test that demonstrate that the query is working or not



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to