Hey. If you enable quotas while already having data, then delete it, the count can go negative, yes.
I imagine we would need to enforce quota re-calculation upon first update. (This is not done for JPA and Cassandra, as far as I know...) Thanks for the feedback. I created this ticket: https://issues.apache.org/jira/browse/MAILBOX-346 Would you like to be contributing on this issue? Benoit Le 16/07/2018 à 23:02, Samuel Marinov a écrit : > Hey, Benoit, > Thanks a lot! That helped. I had quotas enabled, but I didn’t realize what a > quota root was. Also, now that I can see the quotas, it looks like one of > them is at negative storage. Why is that? > > Thanks, > Samuel Marinov > >> On Jul 15, 2018, at 11:58 PM, Benoit Tellier <[email protected]> wrote: >> >> Hi Samuel, >> >> -1. GetStorageQuota do require a QuotaRoot as a parameter and not a >> username. >> >> You can get the quota root to be used by calling the >> >> "./james-cli.sh GetQuotaRoot #private [email protected] INBOX" command >> >> Note that quota root should be "#private&[email protected]" by default. >> >> -2. If you are using Spring, did you took a look at "quota.xml" file? >> >> By default, quotas are not enabled (because some implementations do not >> supports this). >> >> You can follow the instruction in that file to set this correctly up, if >> need be. >> >> Cheers, >> >> Benoit >> >> Le 14/07/2018 à 00:21, Samuel Marinov a écrit : >>> Howdy! >>> >>> I've setup James using the JPA mailbox format. When I run >>> "./james-cli.sh GetStorageQuota [email protected]" it shows the mailbox is >>> at 0 B. Any pointers? >>> >>> >>> Thanks, >>> >>> Samuel Marinov >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
