[jira] [Closed] (JAMES-4181) WEBADMIN Ability to move mails between repositories

"Benoit Tellier (Jira)" <[email protected]> Fri, 13 Mar 2026 21:34:00 +0000 (UTC)
Newsgroups gmane.comp.jakarta.james.devel
Message-ID <[email protected]>
     [ https://issues.apache.org/jira/browse/JAMES-4181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benoit Tellier closed JAMES-4181.
---------------------------------
    Resolution: Fixed

This work is merged

> 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 &amp; MailRepository, webadmin
>            Reporter: Benoit Tellier
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)