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 "Benoit Tellier (Jira)" <se...@james.apache.org> on 2026/03/05 19:53:00 UTC
[jira] [Created] (JAMES-4185) WEBADMIN Ability to browse deleted messages
Benoit Tellier created JAMES-4185:
-------------------------------------
Summary: WEBADMIN Ability to browse deleted messages
Key: JAMES-4185
URL: https://issues.apache.org/jira/browse/JAMES-4185
Project: James Server
Issue Type: Improvement
Components: deletedMessageVault, webadmin
Reporter: Benoit Tellier
h3. Why?
As an admin I frequently need to audit deleted messages of a user, for instance to rerieve the messages he deleted by mistake.
h3. What?
I would like to have a convenience webadmin API to explore the content of the deleted message vault of a user
{code:java}
curl -XPOST http://ip:port/deletedMessages/users/userToRestore@domain.ext/messages
{
"combinator": "and",
"criteria": [
{
"fieldName": "subject",
"operator": "containsIgnoreCase",
"value": "Apache James"
},
{
"fieldName": "deliveryDate",
"operator": "beforeOrEquals",
"value": "2014-10-30T14:12:00Z"
},
{
"fieldName": "deletionDate",
"operator": "afterOrEquals",
"value": "2015-10-20T09:08:00Z"
},
{
"fieldName": "recipients","
"operator": "contains","
"value": "recipient@james.org"
},
{
"fieldName": "hasAttachment",
"operator": "equals",
"value": "false"
},
{
"fieldName": "sender",
"operator": "equals",
"value": "sender@apache.org"
},
{
"fieldName": "originMailboxes",
"operator": "contains",
"value": "02874f7c-d10e-102f-acda-0015176f7922"
}
]
}
{code}
Would return a list of deleted messages:
{code:java}
[
{
"messageId": "42",
"originMailboxes": [
"43",
"44"
],
"owner":"bob@apache.org",
"deliveryDate":"2014-10-30T14:12:00Z",
"deletionDate":"2015-10-30T14:12:00Z",
"sender":"sender@localhost",
"recipients": [
"recipient1@localhost",
"recipient2@localhost"
],
"subject":"subject",
"hasAttachment": false,
"size":24
},...
]
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org