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 "Benoit Tellier (Jira)" <ji...@apache.org> on 2019/11/11 09:53:00 UTC

[jira] [Created] (MAILBOX-391) Use of MailboxPath to represent queries

Benoit Tellier created MAILBOX-391:
--------------------------------------

             Summary: Use of MailboxPath to represent queries
                 Key: MAILBOX-391
                 URL: https://issues.apache.org/jira/browse/MAILBOX-391
             Project: James Mailbox
          Issue Type: Improvement
          Components: store
            Reporter: Benoit Tellier


I got shut down on a refactoring because we use MailboxPath not only to identifies names of mailboxes (along with their owner) but also as a way to query the various names.

This hurts me back as I was trying to impose stronger validation over MailboxPath mailboxName.

Given the "query" context, I could not make MailboxPath stricter.

For mailbox search within MailboxMapper, we should rely on a more suited object. I propose to rely on raw "MailboxQuery object". At the noticeable difference that we need to make sure the username & namespace is being specified at the mapper layer.



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