{"action":"created","comment":{"url":"https://api.github.com/repos/linagora/james-project/pulls/comments/106594853","pull_request_review_id":27523896,"id":106594853,"diff_hunk":"@@ -210,6 +223,134 @@ curl -XDELETE http://ip:port/users/usernameToBeUsed/mailboxes\n Resource name usernameToBeUsed should be an existing user\n \n Response codes :\n+\n  - 204 : The user do not have mailboxes anymore\n  - 404 : The user name does not exist\n+ - 500 : Internal error\n+\n+== Administrating quotas\n+\n+=== Reading per quotaroot mail count limitation\n+\n+.bash\n+====\n+curl -XGET http://ip:port/quota/count\n+====\n+\n+The answer looks like :\n+\n+.json\n+====\n+100000\n+====\n+\n+Response codes :\n+ - 200 : Nothing special\n+ - 500 : Internal error\n+\n+=== Reading per quotaroot mail count limitation\n+\n+.bash\n+====\n+curl -XPUT http://ip:port/quota/count -d '1024000000'\n+====\n+\n+Response codes :\n+\n+ - 204 : Value updated\n+ - 400 : The body is not a positive integer\n+ - 500 : Internal error\n+\n+=== Removing per quotaroot mail count limitation\n+\n+It removes the limitation, and the quota becomes UNILIMITED.\n+\n+.bash\n+====\n+curl -XPUT http://ip:port/quota/count -d '1024000000'\n+====\n+\n+Response codes :\n+\n+ - 204 : Value updated to UNLIMITED\n+ - 500 : Internal error\n+\n+=== Reading per quotaroot size limitation\n+\n+.bash\n+====\n+curl -XGET http://ip:port/quota/size\n+====\n+\n+The answer looks like :\n+\n+.json\n+====\n+100000\n+====\n+\n+It represent the allowed Byte count of the mailboxes belonging to this quotaroot.\n+\n+Response codes :\n+\n+ - 200 : Nothing special\n+ - 500 : Internal error\n+\n+=== Reading per quotaroot size limitation\n+\n+.bash\n+====\n+curl -XPUT http://ip:port/quota/size -d '1024000000'\n+====\n+\n+Response codes :\n+\n+ - 204 : Value updated\n+ - 400 : The body is not a positive integer\n+ - 500 : Internal error\n+\n+=== Removing per quotaroot size limitation\n+\n+It removes the limitation, and the quota becomes UNILIMITED.\n+\n+.bash\n+====\n+curl -XPUT http://ip:port/quota/size -d '1024000000'\n+====\n+\n+Response codes :\n+\n+ - 204 : Value updated to UNLIMITED\n+ - 500 : Internal error\n+\n+=== Managing count and size at the same time\n+\n+.bash\n+====\n+curl -XGET http://ip:port/quota/\n+====\n+\n+Will return :\n+\n+.json\n+====\n+{\"count\":52,\"size\":42}\n+====\n+\n+Response codes :\n+\n+ - 200 : Success\n+ - 500 : Internal error\n+\n+You can also write the value the same way :","path":"server/protocols/webadmin/README.adoc","position":null,"original_position":224,"commit_id":"ea8df8cfaba3a6f23803400aeba03e697cf9f5e0","original_commit_id":"362f90970704d7523f60107f905d72d58f74de93","user":{"login":"quynhn","id":296170,"avatar_url":"https://avatars1.githubusercontent.com/u/296170?v=3","gravatar_id":"","url":"https://api.github.com/users/quynhn","html_url":"https://github.com/quynhn","followers_url":"https://api.github.com/users/quynhn/followers","following_url":"https://api.github.com/users/quynhn/following{/other_user}","gists_url":"https://api.github.com/users/quynhn/gists{/gist_id}","starred_url":"https://api.github.com/users/quynhn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quynhn/subscriptions","organizations_url":"https://api.github.com/users/quynhn/orgs","repos_url":"https://api.github.com/users/quynhn/repos","events_url":"https://api.github.com/users/quynhn/events{/privacy}","received_events_url":"https://api.github.com/users/quynhn/received_events","type":"User","site_admin":false},"body":"And this?","created_at":"2017-03-17T07:17:35Z","updated_at":"2017-03-17T07:17:35Z","html_url":"https://github.com/linagora/james-project/pull/696#discussion_r106594853","pull_request_url":"https://api.github.com/repos/linagora/james-project/pulls/696","_links":{"self":{"href":"https://api.github.com/repos/linagora/james-project/pulls/comments/106594853"},"html":{"href":"https://github.com/linagora/james-project/pull/696#discussion_r106594853"},"pull_request":{"href":"https://api.github.com/repos/linagora/james-project/pulls/696"}}},"pull_request":{"url":"https://api.github.com/repos/linagora/james-project/pulls/696","id":111010526,"html_url":"https://github.com/linagora/james-project/pull/696","diff_url":"https://github.com/linagora/james-project/pull/696.diff","patch_url":"https://github.com/linagora/james-project/pull/696.patch","issue_url":"https://api.github.com/repos/linagora/james-project/issues/696","number":696,"state":"open","locked":false,"title":"JAMES-1961 Enable Quotas and expose max quota policy in web-admin","user":{"login":"chibenwa","id":6928740,"avatar_url":"https://avatars2.githubusercontent.com/u/6928740?v=3","gravatar_id":"","url":"https://api.github.com/users/chibenwa","html_url":"https://github.com/chibenwa","followers_url":"https://api.github.com/users/chibenwa/followers","following_url":"https://api.github.com/users/chibenwa/following{/other_user}","gists_url":"https://api.github.com/users/chibenwa/gists{/gist_id}","starred_url":"https://api.github.com/users/chibenwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chibenwa/subscriptions","organizations_url":"https://api.github.com/users/chibenwa/orgs","repos_url":"https://api.github.com/users/chibenwa/repos","events_url":"https://api.github.com/users/chibenwa/events{/privacy}","received_events_url":"https://api.github.com/users/chibenwa/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-03-16T07:53:56Z","updated_at":"2017-03-17T07:17:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"792d422247a9bfc90c0ad6ae0e1661ec6d98e955","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/linagora/james-project/pulls/696/commits","review_comments_url":"https://api.github.com/repos/linagora/james-project/pulls/696/comments","review_comment_url":"https://api.github.com/repos/linagora/james-project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/linagora/james-project/issues/696/comments","statuses_url":"https://api.github.com/repos/linagora/james-project/statuses/ea8df8cfaba3a6f23803400aeba03e697cf9f5e0","head":{"label":"chibenwa:vn_barcamp","ref":"vn_barcamp","sha":"ea8df8cfaba3a6f23803400aeba03e697cf9f5e0","user":{"login":"chibenwa","id":6928740,"avatar_url":"https://avatars2.githubusercontent.com/u/6928740?v=3","gravatar_id":"","url":"https://api.github.com/users/chibenwa","html_url":"https://github.com/chibenwa","followers_url":"https://api.github.com/users/chibenwa/followers","following_url":"https://api.github.com/users/chibenwa/following{/other_user}","gists_url":"https://api.github.com/users/chibenwa/gists{/gist_id}","starred_url":"https://api.github.com/users/chibenwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chibenwa/subscriptions","organizations_url":"https://api.github.com/users/chibenwa/orgs","repos_url":"https://api.github.com/users/chibenwa/repos","events_url":"https://api.github.com/users/chibenwa/events{/privacy}","received_events_url":"https://api.github.com/users/chibenwa/received_events","type":"User","site_admin":false},"repo":{"id":42459504,"name":"james-project","full_name":"chibenwa/james-project","owner":{"login":"chibenwa","id":6928740,"avatar_url":"https://avatars2.githubusercontent.com/u/6928740?v=3","gravatar_id":"","url":"https://api.github.com/users/chibenwa","html_url":"https://github.com/chibenwa","followers_url":"https://api.github.com/users/chibenwa/followers","following_url":"https://api.github.com/users/chibenwa/following{/other_user}","gists_url":"https://api.github.com/users/chibenwa/gists{/gist_id}","starred_url":"https://api.github.com/users/chibenwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chibenwa/subscriptions","organizations_url":"https://api.github.com/users/chibenwa/orgs","repos_url":"https://api.github.com/users/chibenwa/repos","events_url":"https://api.github.com/users/chibenwa/events{/privacy}","received_events_url":"https://api.github.com/users/chibenwa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chibenwa/james-project","description":"Mirror of Apache James Project","fork":true,"url":"https://api.github.com/repos/chibenwa/james-project","forks_url":"https://api.github.com/repos/chibenwa/james-project/forks","keys_url":"https://api.github.com/repos/chibenwa/james-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chibenwa/james-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chibenwa/james-project/teams","hooks_url":"https://api.github.com/repos/chibenwa/james-project/hooks","issue_events_url":"https://api.github.com/repos/chibenwa/james-project/issues/events{/number}","events_url":"https://api.github.com/repos/chibenwa/james-project/events","assignees_url":"https://api.github.com/repos/chibenwa/james-project/assignees{/user}","branches_url":"https://api.github.com/repos/chibenwa/james-project/branches{/branch}","tags_url":"https://api.github.com/repos/chibenwa/james-project/tags","blobs_url":"https://api.github.com/repos/chibenwa/james-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chibenwa/james-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chibenwa/james-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/chibenwa/james-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chibenwa/james-project/statuses/{sha}","languages_url":"https://api.github.com/repos/chibenwa/james-project/languages","stargazers_url":"https://api.github.com/repos/chibenwa/james-project/stargazers","contributors_url":"https://api.github.com/repos/chibenwa/james-project/contributors","subscribers_url":"https://api.github.com/repos/chibenwa/james-project/subscribers","subscription_url":"https://api.github.com/repos/chibenwa/james-project/subscription","commits_url":"https://api.github.com/repos/chibenwa/james-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/chibenwa/james-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/chibenwa/james-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/chibenwa/james-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/chibenwa/james-project/contents/{+path}","compare_url":"https://api.github.com/repos/chibenwa/james-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chibenwa/james-project/merges","archive_url":"https://api.github.com/repos/chibenwa/james-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chibenwa/james-project/downloads","issues_url":"https://api.github.com/repos/chibenwa/james-project/issues{/number}","pulls_url":"https://api.github.com/repos/chibenwa/james-project/pulls{/number}","milestones_url":"https://api.github.com/repos/chibenwa/james-project/milestones{/number}","notifications_url":"https://api.github.com/repos/chibenwa/james-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chibenwa/james-project/labels{/name}","releases_url":"https://api.github.com/repos/chibenwa/james-project/releases{/id}","deployments_url":"https://api.github.com/repos/chibenwa/james-project/deployments","created_at":"2015-09-14T15:57:25Z","updated_at":"2017-02-08T09:35:46Z","pushed_at":"2017-03-17T07:07:07Z","git_url":"git://github.com/chibenwa/james-project.git","ssh_url":"git@github.com:chibenwa/james-project.git","clone_url":"https://github.com/chibenwa/james-project.git","svn_url":"https://github.com/chibenwa/james-project","homepage":null,"size":21074,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":1,"default_branch":"trunk"}},"base":{"label":"linagora:master","ref":"master","sha":"e8b94d178a0e23be25b7681900972b1bac48f543","user":{"login":"linagora","id":1230365,"avatar_url":"https://avatars0.githubusercontent.com/u/1230365?v=3","gravatar_id":"","url":"https://api.github.com/users/linagora","html_url":"https://github.com/linagora","followers_url":"https://api.github.com/users/linagora/followers","following_url":"https://api.github.com/users/linagora/following{/other_user}","gists_url":"https://api.github.com/users/linagora/gists{/gist_id}","starred_url":"https://api.github.com/users/linagora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linagora/subscriptions","organizations_url":"https://api.github.com/users/linagora/orgs","repos_url":"https://api.github.com/users/linagora/repos","events_url":"https://api.github.com/users/linagora/events{/privacy}","received_events_url":"https://api.github.com/users/linagora/received_events","type":"Organization","site_admin":false},"repo":{"id":39182136,"name":"james-project","full_name":"linagora/james-project","owner":{"login":"linagora","id":1230365,"avatar_url":"https://avatars0.githubusercontent.com/u/1230365?v=3","gravatar_id":"","url":"https://api.github.com/users/linagora","html_url":"https://github.com/linagora","followers_url":"https://api.github.com/users/linagora/followers","following_url":"https://api.github.com/users/linagora/following{/other_user}","gists_url":"https://api.github.com/users/linagora/gists{/gist_id}","starred_url":"https://api.github.com/users/linagora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linagora/subscriptions","organizations_url":"https://api.github.com/users/linagora/orgs","repos_url":"https://api.github.com/users/linagora/repos","events_url":"https://api.github.com/users/linagora/events{/privacy}","received_events_url":"https://api.github.com/users/linagora/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/linagora/james-project","description":"Mirror of Apache James Project","fork":true,"url":"https://api.github.com/repos/linagora/james-project","forks_url":"https://api.github.com/repos/linagora/james-project/forks","keys_url":"https://api.github.com/repos/linagora/james-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linagora/james-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linagora/james-project/teams","hooks_url":"https://api.github.com/repos/linagora/james-project/hooks","issue_events_url":"https://api.github.com/repos/linagora/james-project/issues/events{/number}","events_url":"https://api.github.com/repos/linagora/james-project/events","assignees_url":"https://api.github.com/repos/linagora/james-project/assignees{/user}","branches_url":"https://api.github.com/repos/linagora/james-project/branches{/branch}","tags_url":"https://api.github.com/repos/linagora/james-project/tags","blobs_url":"https://api.github.com/repos/linagora/james-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linagora/james-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linagora/james-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/linagora/james-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linagora/james-project/statuses/{sha}","languages_url":"https://api.github.com/repos/linagora/james-project/languages","stargazers_url":"https://api.github.com/repos/linagora/james-project/stargazers","contributors_url":"https://api.github.com/repos/linagora/james-project/contributors","subscribers_url":"https://api.github.com/repos/linagora/james-project/subscribers","subscription_url":"https://api.github.com/repos/linagora/james-project/subscription","commits_url":"https://api.github.com/repos/linagora/james-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/linagora/james-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/linagora/james-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/linagora/james-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/linagora/james-project/contents/{+path}","compare_url":"https://api.github.com/repos/linagora/james-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linagora/james-project/merges","archive_url":"https://api.github.com/repos/linagora/james-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linagora/james-project/downloads","issues_url":"https://api.github.com/repos/linagora/james-project/issues{/number}","pulls_url":"https://api.github.com/repos/linagora/james-project/pulls{/number}","milestones_url":"https://api.github.com/repos/linagora/james-project/milestones{/number}","notifications_url":"https://api.github.com/repos/linagora/james-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linagora/james-project/labels{/name}","releases_url":"https://api.github.com/repos/linagora/james-project/releases{/id}","deployments_url":"https://api.github.com/repos/linagora/james-project/deployments","created_at":"2015-07-16T07:04:59Z","updated_at":"2017-03-08T10:22:40Z","pushed_at":"2017-03-17T07:07:08Z","git_url":"git://github.com/linagora/james-project.git","ssh_url":"git@github.com:linagora/james-project.git","clone_url":"https://github.com/linagora/james-project.git","svn_url":"https://github.com/linagora/james-project","homepage":null,"size":18533,"stargazers_count":11,"watchers_count":11,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":25,"forks":17,"open_issues":25,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/linagora/james-project/pulls/696"},"html":{"href":"https://github.com/linagora/james-project/pull/696"},"issue":{"href":"https://api.github.com/repos/linagora/james-project/issues/696"},"comments":{"href":"https://api.github.com/repos/linagora/james-project/issues/696/comments"},"review_comments":{"href":"https://api.github.com/repos/linagora/james-project/pulls/696/comments"},"review_comment":{"href":"https://api.github.com/repos/linagora/james-project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/linagora/james-project/pulls/696/commits"},"statuses":{"href":"https://api.github.com/repos/linagora/james-project/statuses/ea8df8cfaba3a6f23803400aeba03e697cf9f5e0"}}}}
{"actor":{"display_login":"quynhn"}}