Skip to content

JAMES-4204 Webadmin endpoint for restore mailbox backup#3041

Open
Arsnael wants to merge 2 commits into
apache:masterfrom
Arsnael:restore-mailbox
Open

JAMES-4204 Webadmin endpoint for restore mailbox backup#3041
Arsnael wants to merge 2 commits into
apache:masterfrom
Arsnael:restore-mailbox

Conversation

@Arsnael
Copy link
Copy Markdown
Contributor

@Arsnael Arsnael commented May 15, 2026

No description provided.

@Arsnael Arsnael self-assigned this May 15, 2026
@Arsnael
Copy link
Copy Markdown
Contributor Author

Arsnael commented May 15, 2026

So... welll technically the message restoration isn't working yet. For the simple reason that the message restoration logic... is missing^^" : https://github.com/apache/james-project/blob/master/mailbox/backup/src/main/java/org/apache/james/mailbox/backup/ZipMailArchiveRestorer.java#L87

Will tackle it later...

}
....

Note: The account must be empty for the restore to succeed. If the user already has mailboxes, the task will fail.
Copy link
Copy Markdown
Contributor

@chibenwa chibenwa May 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we can sneak a commit about it a ?force parameter to skip that check it would be GREAT

Comment on lines +463 to +464
java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream();
try (java.util.zip.ZipOutputStream zos = new java.util.zip.ZipOutputStream(baos)) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need FQDN ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants