You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Raphael Ouazana (Jira)" <se...@james.apache.org> on 2020/06/11 15:29:00 UTC

[jira] [Commented] (JAMES-3182) Fetching message in getMessageList ignore inMailbox filter when in a combination of filter

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

Raphael Ouazana commented on JAMES-3182:
----------------------------------------

[https://github.com/linagora/james-project/pull/3427] fixes some related issues

> Fetching message in getMessageList ignore inMailbox filter when in a combination of filter
> ------------------------------------------------------------------------------------------
>
>                 Key: JAMES-3182
>                 URL: https://issues.apache.org/jira/browse/JAMES-3182
>             Project: James Server
>          Issue Type: Test
>          Components: JMAP
>    Affects Versions: 3.6.0
>            Reporter: Rémi Kowalski
>            Assignee: Antoine Duprat
>            Priority: Major
>             Fix For: 3.6.0
>
>
> The  inMailbox, notInMailbox filters are ignored when they are placed in a combination of filter.
> The reason is :
>  * Mailboxes the query is run against are resolved against cassandra before being pushed to the search index.
>  * The bit of code handling this conversion only take into consideration TOP LEVEL liters and not those wrapped by some FilterOperatrs (AND, OR, NOT)
> for more context see  #3180: 
>  [https://github.com/linagora/james-project/pull/3374]
> DOD : 
>  make
> {color:#00627a}`GetMessageListMethodTest.getMessageListShouldFetchUnreadMessagesInMailboxUsingACombinationOfFilter`
>  
>  pass and add test to ensure the notInMailbox filter is handled as well.
>  
>  
>  create some other tests with nested mailbox filters
>  {color}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org