Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-3182

Fetching message in getMessageList ignore inMailbox filter when in a combination of filter

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.6.0
    • 3.6.0
    • JMAP
    • None

    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

      `GetMessageListMethodTest.getMessageListShouldFetchUnreadMessagesInMailboxUsingACombinationOfFilter`

      pass and add test to ensure the notInMailbox filter is handled as well.


      create some other tests with nested mailbox filters

      Attachments

        Activity

          People

            aduprat Antoine Duprat
            remi_kowalski Rémi Kowalski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: