Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0.0-beta5
-
None
-
None
Description
We want the following tasks to be performed :
- 1: Delete all mailboxes belonging to a user
- 2: Create mailboxes
- 3: List mailboxes belonging to a user
Why ?
We want to write a standalone MPT tool to validate our James deployement. ( See MPT- ).
MPT is given a docker name on a docker instance and should be allowed to initialise James instance for tests. We can not re-instanciate docker instance on each test ( as we want to validate behaviour of the given docker instance so that we can use it ). Working directly on IMAP seems complicated. And keeping track of all executed commands on MPT seems also complicated.
Finaly, these commands corresponds to use cases :
- as an admin I want to delete mailboxes of user I just deleted
- I can write a script to automatically create user and create some of their mailboxes.
Acceptance criteria :
- Lauch a James server compiled with your changes. Using james CLI you should be able to :
- list mailboxes belonging to a user
- create mailboxes
- delete all mailboxes belonging to a user
How to implement it ?
Stuff already exist for that (mailbox-adapter). It can be of course extended. And wired to be accessible threw JMX.