You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2021/04/09 12:00:44 UTC
[james-project] 02/03: JAMES-3417 JMAP Email/query: advertise size,
subject, from, to support
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit e52eacfc94e5a693b48a6587ca755b7bf3ded149
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Mon Apr 5 21:23:26 2021 +0700
JAMES-3417 JMAP Email/query: advertise size, subject, from, to support
---
.../org/apache/james/jmap/rfc8621/contract/CustomMethodContract.scala | 4 ++--
.../apache/james/jmap/rfc8621/contract/SessionRoutesContract.scala | 4 ++--
.../src/main/scala/org/apache/james/jmap/core/Capabilities.scala | 2 +-
.../test/scala/org/apache/james/jmap/routes/SessionRoutesTest.scala | 4 ++--
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/server/protocols/jmap-rfc-8621-integration-tests/jmap-rfc-8621-integration-tests-common/src/main/scala/org/apache/james/jmap/rfc8621/contract/CustomMethodContract.scala b/server/protocols/jmap-rfc-8621-integration-tests/jmap-rfc-8621-integration-tests-common/src/main/scala/org/apache/james/jmap/rfc8621/contract/CustomMethodContract.scala
index a0ad6f5..2ff1af2 100644
--- a/server/protocols/jmap-rfc-8621-integration-tests/jmap-rfc-8621-integration-tests-common/src/main/scala/org/apache/james/jmap/rfc8621/contract/CustomMethodContract.scala
+++ b/server/protocols/jmap-rfc-8621-integration-tests/jmap-rfc-8621-integration-tests-common/src/main/scala/org/apache/james/jmap/rfc8621/contract/CustomMethodContract.scala
@@ -68,7 +68,7 @@ object CustomMethodContract {
| "maxMailboxDepth" : null,
| "maxSizeMailboxName" : 200,
| "maxSizeAttachmentsPerEmail" : 20000000,
- | "emailQuerySortOptions" : ["receivedAt", "sentAt"],
+ | "emailQuerySortOptions" : ["receivedAt", "sentAt", "size", "from", "to", "subject"],
| "mayCreateTopLevelMailbox" : true
| },
| "urn:ietf:params:jmap:websocket": {
@@ -110,7 +110,7 @@ object CustomMethodContract {
| "maxMailboxDepth" : null,
| "maxSizeMailboxName" : 200,
| "maxSizeAttachmentsPerEmail" : 20000000,
- | "emailQuerySortOptions" : ["receivedAt", "sentAt"],
+ | "emailQuerySortOptions" : ["receivedAt", "sentAt", "size", "from", "to", "subject"],
| "mayCreateTopLevelMailbox" : true
| },
| "urn:apache:james:params:jmap:mail:quota": {},
diff --git a/server/protocols/jmap-rfc-8621-integration-tests/jmap-rfc-8621-integration-tests-common/src/main/scala/org/apache/james/jmap/rfc8621/contract/SessionRoutesContract.scala b/server/protocols/jmap-rfc-8621-integration-tests/jmap-rfc-8621-integration-tests-common/src/main/scala/org/apache/james/jmap/rfc8621/contract/SessionRoutesContract.scala
index 7f71277..f5407d2 100644
--- a/server/protocols/jmap-rfc-8621-integration-tests/jmap-rfc-8621-integration-tests-common/src/main/scala/org/apache/james/jmap/rfc8621/contract/SessionRoutesContract.scala
+++ b/server/protocols/jmap-rfc-8621-integration-tests/jmap-rfc-8621-integration-tests-common/src/main/scala/org/apache/james/jmap/rfc8621/contract/SessionRoutesContract.scala
@@ -60,7 +60,7 @@ object SessionRoutesContract {
| "maxMailboxDepth" : null,
| "maxSizeMailboxName" : 200,
| "maxSizeAttachmentsPerEmail" : 20000000,
- | "emailQuerySortOptions" : ["receivedAt", "sentAt"],
+ | "emailQuerySortOptions" : ["receivedAt", "sentAt", "size", "from", "to", "subject"],
| "mayCreateTopLevelMailbox" : true
| },
| "urn:ietf:params:jmap:websocket": {
@@ -101,7 +101,7 @@ object SessionRoutesContract {
| "maxMailboxDepth" : null,
| "maxSizeMailboxName" : 200,
| "maxSizeAttachmentsPerEmail" : 20000000,
- | "emailQuerySortOptions" : ["receivedAt", "sentAt"],
+ | "emailQuerySortOptions" : ["receivedAt", "sentAt", "size", "from", "to", "subject"],
| "mayCreateTopLevelMailbox" : true
| },
| "urn:apache:james:params:jmap:mail:quota": {},
diff --git a/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/core/Capabilities.scala b/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/core/Capabilities.scala
index cb6daed..ef46ff0 100644
--- a/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/core/Capabilities.scala
+++ b/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/core/Capabilities.scala
@@ -44,7 +44,7 @@ object DefaultCapabilities {
MaxMailboxDepth(None),
MaxSizeMailboxName(200L),
MaxSizeAttachmentsPerEmail(20_000_000L),
- emailQuerySortOptions = List("receivedAt", "sentAt"),
+ emailQuerySortOptions = List("receivedAt", "sentAt", "size", "from", "to", "subject"),
MayCreateTopLevelMailbox(true)))
val QUOTA_CAPABILITY = QuotaCapability()
val SHARES_CAPABILITY = SharesCapability()
diff --git a/server/protocols/jmap-rfc-8621/src/test/scala/org/apache/james/jmap/routes/SessionRoutesTest.scala b/server/protocols/jmap-rfc-8621/src/test/scala/org/apache/james/jmap/routes/SessionRoutesTest.scala
index 8fb5057..56458f2 100644
--- a/server/protocols/jmap-rfc-8621/src/test/scala/org/apache/james/jmap/routes/SessionRoutesTest.scala
+++ b/server/protocols/jmap-rfc-8621/src/test/scala/org/apache/james/jmap/routes/SessionRoutesTest.scala
@@ -141,7 +141,7 @@ class SessionRoutesTest extends AnyFlatSpec with BeforeAndAfter with Matchers {
| "maxMailboxDepth" : null,
| "maxSizeMailboxName" : 200,
| "maxSizeAttachmentsPerEmail" : 20000000,
- | "emailQuerySortOptions" : ["receivedAt", "sentAt"],
+ | "emailQuerySortOptions" : ["receivedAt", "sentAt", "size", "from", "to", "subject"],
| "mayCreateTopLevelMailbox" : true
| },
| "urn:ietf:params:jmap:websocket": {
@@ -181,7 +181,7 @@ class SessionRoutesTest extends AnyFlatSpec with BeforeAndAfter with Matchers {
| "maxMailboxDepth" : null,
| "maxSizeMailboxName" : 200,
| "maxSizeAttachmentsPerEmail" : 20000000,
- | "emailQuerySortOptions" : ["receivedAt", "sentAt"],
+ | "emailQuerySortOptions" : ["receivedAt", "sentAt", "size", "from", "to", "subject"],
| "mayCreateTopLevelMailbox" : true
| },
| "urn:apache:james:params:jmap:mail:quota": {},
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org