You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Benoit Tellier (Jira)" <se...@james.apache.org> on 2021/07/28 09:32:00 UTC

[jira] [Created] (JAMES-3621) Improve Mailbox webadmin routes

Benoit Tellier created JAMES-3621:
-------------------------------------

             Summary: Improve Mailbox webadmin routes
                 Key: JAMES-3621
                 URL: https://issues.apache.org/jira/browse/JAMES-3621
             Project: James Server
          Issue Type: Improvement
          Components: mailbox, webadmin
    Affects Versions: 3.6.0
            Reporter: Benoit Tellier
             Fix For: 3.7.0


For one of my customer, we would like to provide  additional features for the webadmin mailbox endpoints:

 - Counting emails in a given mailbox
 - Counting unseen emails in a given mailbox
 - Clearing content of a given mailbox

Here are the proposed endpoints to match this need:

{code:java}
GET /users/bob@domain.tldmailboxes/mbxName/messageCount

36

GET /users/bob@domain.tldmailboxes/mbxName/unseenMessageCount

18


DELETE /users/bob@domain.tldmailboxes/mbxName/messages

Return code: 204
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org