[ 
https://issues.apache.org/jira/browse/JAMES-1193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12995641#comment-12995641
 ] 

Barry commented on JAMES-1193:
------------------------------

In the method getUsed, there are the code as below:
MessageManager mailbox = manager.getMailbox(new 
MailboxPath(MailboxConstants.USER_NAMESPACE,
                                                
session.getUser().getUserName(), "INBOX"),
                                                session);

I think it is not applicable for James3. I think should modified as the below:

            MessageManager mailbox = manager.getMailbox(new 
MailboxPath(MailboxConstants.USER_NAMESPACE,
                                                
session.getUser().getUserName()+"@"+recipient.getDomain(), "INBOX"),
                                                session);

but I am not sure whether or not there is better method still? Another 
question, because on IMAP, multiple folders can be created, not just "INBOX", 
how to calculate the used space?

> Some wrong in AbstractStorageQuota.java
> ---------------------------------------
>
>                 Key: JAMES-1193
>                 URL: https://issues.apache.org/jira/browse/JAMES-1193
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Mailet Contributions
>    Affects Versions: 3.0-M2
>            Reporter: Barry
>            Assignee: Norman Maurer
>            Priority: Minor
>             Fix For: 3.0-M3
>
>
> a customized matcher extends AbstractStorageQuota, then configured the 
> matcher, but it thew a NPE.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Reply via email to