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

Tim-Christian Mundt updated IMAP-151:
-------------------------------------

    Attachment: IMAP-151a.patch

Yeah, sorry, that was kinda stupid. In the new patch I changed the JCR 
implementation back, but still i think the algorithm for hasChildren should be 
in the mapper rather than in the manager, that's what this patch does. Just a 
suggestion, whatever you think is right.

> Replace MailboxMapper.existsMailboxStartingWith() with hasChildren()
> --------------------------------------------------------------------
>
>                 Key: IMAP-151
>                 URL: https://issues.apache.org/jira/browse/IMAP-151
>             Project: JAMES Imap
>          Issue Type: Improvement
>            Reporter: Tim-Christian Mundt
>         Attachments: IMAP-151.patch, IMAP-151a.patch
>
>
> existsMailboxStartingWith() is only used to find out whether a mailbox has 
> children. For some implementations it's more efficient to use another 
> mechanism (e.g. JCR nodes have a hasNodes() method). Thus 
> existsMailboxStartingWith() should be removed, hasChildren() should be added 
> and the implementations should make use of that.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to