Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.6.0
    • None
    • JMAP
    • None

    Description

      Mailbox/query filter property do not yet support search operators (and or not) and only supports 'role' filter. No sorts are supported.

      This is so far a really rudimentary implementation, devoted to one-api-call inbox mail list loading.

      According to https://jmap.io/spec-mail.html#mailboxquery :

      A FilterCondition object has the following properties, any of which may be omitted:
      
          parentId: Id|null The Mailbox parentId property must match the given value exactly.
          name: String The Mailbox name property contains the given string.
          role: String|null The Mailbox role property must match the given value exactly.
          hasAnyRole: Boolean If true, a Mailbox matches if it has any non-null value for its role property.
          isSubscribed: Boolean The isSubscribed property of the Mailbox must be identical to the value given to match the condition.
      
      A Mailbox object matches the FilterCondition if and only if all of the given conditions match. If zero properties are specified, it is automatically true for all objects.
      
      The following Mailbox properties MUST be supported for sorting:
      
          sortOrder
          name
      

      Also two more properties are created: sortAsTree and filterAsTree

      How

      For a full support we should likely index mailboxes in ElasticSearch and craft the related search APIs. A scrolling version for memory might be needed too.

      As this is not a strong requirement for Linagora, and as it seems expensive to implement, we will likely not contribute it soon, but we could provide guidance into implementing it.

      Attachments

        Activity

          People

            aduprat Antoine Duprat
            btellier Benoit Tellier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: