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 "Rémi Kowalski (Jira)" <se...@james.apache.org> on 2020/05/14 14:19:00 UTC

[jira] [Updated] (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:all-tabpanel ]

Rémi Kowalski updated JAMES-3182:
---------------------------------
    Description: 
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}

  was:
* 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}


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