-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Why
Runs filter on a stock. Then I can easily sort my older mails.
{
"using": [
"urn:ietf:params:jmap:core",
"com:linagora:params:jmap:filter"
],
"methodCalls": [
[
"FolderFilteringAction/set",
{
"create": {
"clientId1": {
"mailboxId": "mailboxId2"
},
"clientId2": {
"unknownProperty": "2016-06-09T01:07:06Z"
}
}
},
"c1"
]
]
}
Would run filters (applied by Filter/set) onto the given emails and apply conditions.
The underlying implementation would be based on an Apache James Task, the result of the FolderFilteringAction/set create would provide the task id(s):
[
"FolderFilteringAction/set",
{
"created": {
"clientId1": {
"id": "taskId1"
}
},
"notCreated": {
"clientId2": {
"type": "invalidArguments",
"description": "Unknown properties: unknownProperty"
}
}
},
"c1"
]
How
- Implement
FolderFilteringAction/set createmethod (can take inspiration fromEmailRecoveryAction/set create) - Contract tests
Note:
- requires the Filter capability:
com:linagora:params:jmap:filter /set createshould fail when thestatusproperty or unknown property is specified.
Metadata
Metadata
Assignees
Labels
No labels