Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-2319

As an administrator I want to clear a mailQueue

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: master
    • Fix Version/s: None
    • Component/s: Queue, webadmin
    • Labels:

      Description

      The goal of this ticket is to implement an additional webadmin mailqueue management endpoint.

      DELETE /mailQueues/:name/messages/
      

      This should purge the mail queue (akka delete all mails from the queue).

      You need to enhance the behaviour of MailQueueRoutes (deleteMails). You need a DELETE without query parameters to call ManageableMailQueue::clear.

      You will need tests in MailQueueRoutesTest to show:

      • The status corresponds to 204
      • The mail queue is purged: all enqueued mails are removed
      • Purging an empty queue is allowed.

      This task is related to JAMES-2320 which should add a task for this.

      If you need more details to implement this feature, we are willing to provide support. Don't hesitate to ask on https://gitter.im/apache/james-project. We are willing to provide guidance.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              BTellier Tellier Benoit
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: