Benoit Tellier created JAMES-4181:
-------------------------------------
Summary: WEBADMIN Ability to move mails between repositories
Key: JAMES-4181
URL: https://issues.apache.org/jira/browse/JAMES-4181
Project: James Server
Issue Type: Improvement
Components: MailStore & MailRepository, webadmin
Reporter: Benoit Tellier
h2. Why ?
- I want to get something out of `/var/mail/error` that gets automatically
reprocessed
(I needed to do this for a deployment but couldn't...)
- I want to migrate mail repository
(Could help in the mail repo migration use case...)
h2. How ?
h3. Endpoint to move individual mails
{code:java}
PATCH /mailRepositories/{encodedPath}/mails/{mailKey}
{"mailRepository": "/var/mail/error-saved"}
{code}
400 if target repository do not exist...
h3. Endpoint to move all mails
{code:java}
PATCH /mailRepositories/{encodedPath}/mails
{"mailRepository": "/var/mail/error-saved"}
{code}
400 if target repository do not exist...
No need to a task IMO (at least at first)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]