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 "Tellier Benoit (JIRA)" <se...@james.apache.org> on 2017/09/28 04:28:00 UTC
[jira] [Created] (JAMES-2164) Manage Mail Queue through CLI
Tellier Benoit created JAMES-2164:
-------------------------------------
Summary: Manage Mail Queue through CLI
Key: JAMES-2164
URL: https://issues.apache.org/jira/browse/JAMES-2164
Project: James Server
Issue Type: Bug
Components: CLI, Queue
Affects Versions: master
Reporter: Tellier Benoit
The mail queue is the components allowing asynchronous mail processing in the James email server.
The *ManageableMailQueue* exposes some interesting wiring functionalities like:
- ManageableMailQueue::getSize
- ManageableMailQueue::flush
- ManageableMailQueue::clear
- ManageableMailQueue::remove by recipient, sender or name
- ManageableMailQueue::browse
This functionality would be very helpful for an ADMIN, hence we should expose them in the CLI.
Thus we would like to have the following CLI commands:
{code:java}
QueueSize queueName
flushQueue queueName
clearQueue queueName
removeFromQueue queueName [sender,recipient,name] sender@domain.com
browseQueue queueName
[Browse being returning mail name, sender, recipients]
{code}
To do so:
- Create a MailQueueManagementMBean and MailQueueManagement implementation, that exposes these functionalities (with one extra argument: queue name). MailQueueManagement would use the injected MailQueueFactory, and implement the given behaviour if the MailQueue is "manageable" and throw otherwise.
- You need to add the commands in CmdType (as well as related tests)
- Add your command handling in ServerCmd and add related tests
- You need to record the given MBEAN in spring and Guice
- An integration test in "james-server-cli-integration" would be welcome.
Of course, feel free to ask for help on the gitter chat.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org