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/14 02:11:00 UTC

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

     [ https://issues.apache.org/jira/browse/MAILBOX-391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benoit Tellier closed MAILBOX-391.
----------------------------------
    Fix Version/s: 3.5.0
       Resolution: Fixed

Merged

> 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
>            Priority: Major
>             Fix For: 3.5.0
>
>
> 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