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/[email protected]/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": "[email protected]"
    },
    {
      "fieldName": "hasAttachment",
      "operator": "equals",
      "value": "false"
    },
    {
      "fieldName": "sender",
      "operator": "equals",
      "value": "[email protected]"
    },
    {
      "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":"[email protected]",
  "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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to