chibenwa commented on a change in pull request #569:
URL: https://github.com/apache/james-project/pull/569#discussion_r681378557



##########
File path: docs/modules/servers/pages/distributed/operate/webadmin.adoc
##########
@@ -1322,6 +1322,38 @@ Warning: While we have been trying to reduce the 
inconsistency window to
 a maximum (by keeping track of ongoing events), concurrent changes done
 during the reIndexing might be ignored.
 
+=== Counting emails
+
+....
+curl -XGET 
http://ip:port/users/{usernameToBeUsed}/mailboxes/{mailboxName}/messageCount
+....
+
+Resource name `usernameToBeUsed` should be an existing user.
+
+Resource name `mailboxName` should not be empty, nor contain `% *` characters, 
nor starting with `#`.
+
+Response codes:
+
+* 200: The number emails in a given mailbox
+* 400: Invalid mailbox name
+* 404: Invalid get on user mailboxes. The `usernameToBeUsed` or `mailboxName` 
does not exit'
+
+=== Counting unseen emails
+
+....
+curl -XGET 
http://ip:port/users/{usernameToBeUsed}/mailboxes/{mailboxName}/unseenMessageCount
+....
+

Review comment:
       Will return the total count of unseen messages within the mailbox of 
that user.

##########
File path: docs/modules/servers/pages/distributed/operate/webadmin.adoc
##########
@@ -1322,6 +1322,38 @@ Warning: While we have been trying to reduce the 
inconsistency window to
 a maximum (by keeping track of ongoing events), concurrent changes done
 during the reIndexing might be ignored.
 
+=== Counting emails
+
+....
+curl -XGET 
http://ip:port/users/{usernameToBeUsed}/mailboxes/{mailboxName}/messageCount
+....
+

Review comment:
       Will return the total count of messages within the mailbox of that user.

##########
File path: src/site/markdown/server/manage-webadmin.md
##########
@@ -1167,6 +1169,37 @@ Warning: Canceling this task should be considered unsafe 
as it will leave the cu
 Warning: While we have been trying to reduce the inconsistency window to a 
maximum (by keeping track of ongoing events),
 concurrent changes done during the reIndexing might be ignored.
 
+### Counting emails
+
+```bash
+curl -XGET 
http://ip:port/users/{usernameToBeUsed}/mailboxes/{mailboxName}/messageCount
+```
+

Review comment:
       Will return the total count of messages within the mailbox of that user.

##########
File path: src/site/markdown/server/manage-webadmin.md
##########
@@ -1167,6 +1169,37 @@ Warning: Canceling this task should be considered unsafe 
as it will leave the cu
 Warning: While we have been trying to reduce the inconsistency window to a 
maximum (by keeping track of ongoing events),
 concurrent changes done during the reIndexing might be ignored.
 
+### Counting emails
+
+```bash
+curl -XGET 
http://ip:port/users/{usernameToBeUsed}/mailboxes/{mailboxName}/messageCount
+```
+
+Resource name `usernameToBeUsed` should be an existing user.    
+Resource name `mailboxName` should not be empty, nor contain `% *` characters, 
nor starting with `#`.
+
+Response codes:
+
+- 200: The number emails in a given mailbox
+- 400: Invalid mailbox name
+- 404: Invalid get on user mailboxes. The `usernameToBeUsed` or `mailboxName` 
does not exit'
+
+### Counting unseen emails
+
+```bash
+curl -XGET 
http://ip:port/users/{usernameToBeUsed}/mailboxes/{mailboxName}/unseenMessageCount
+```
+

Review comment:
       Will return the total count of unseen messages within the mailbox of 
that user.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to