MAILET-122 Bcc should exist

Overwise errors are generated and returned to sender


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/35c2d4b7
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/35c2d4b7
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/35c2d4b7

Branch: refs/heads/master
Commit: 35c2d4b7b46d59d5d70eed3325371807d60e67a1
Parents: e0ca796
Author: Benoit Tellier <[email protected]>
Authored: Fri Oct 7 17:17:05 2016 +0200
Committer: Benoit Tellier <[email protected]>
Committed: Mon Oct 10 11:36:00 2016 +0200

----------------------------------------------------------------------
 .../james/jmap/methods/integration/SetMessagesMethodTest.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/35c2d4b7/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/SetMessagesMethodTest.java
----------------------------------------------------------------------
diff --git 
a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/SetMessagesMethodTest.java
 
b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/SetMessagesMethodTest.java
index fe5f5c2..486f53c 100644
--- 
a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/SetMessagesMethodTest.java
+++ 
b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/SetMessagesMethodTest.java
@@ -1218,8 +1218,10 @@ public abstract class SetMessagesMethodTest {
         
jmapServer.serverProbe().createMailbox(MailboxConstants.USER_NAMESPACE, 
username, "sent");
         // Recipient
         String recipientAddress = "recipient" + "@" + USERS_DOMAIN;
+        String bccRecipient = "bob@" + USERS_DOMAIN;
         String password = "password";
         jmapServer.serverProbe().addUser(recipientAddress, password);
+        jmapServer.serverProbe().addUser(bccRecipient, password);
         
jmapServer.serverProbe().createMailbox(MailboxConstants.USER_NAMESPACE, 
recipientAddress, "inbox");
         await();
         AccessToken recipientToken = 
JmapAuthentication.authenticateJamesUser(recipientAddress, password);
@@ -1233,7 +1235,7 @@ public abstract class SetMessagesMethodTest {
                 "      \"create\": { \"" + messageCreationId  + "\" : {" +
                 "        \"from\": { \"email\": \"" + fromAddress + "\"}," +
                 "        \"to\": [{ \"name\": \"recipient\", \"email\": \"" + 
recipientAddress + "\"}]," +
-                "        \"bcc\": [{ \"name\": \"BOB\", \"email\": \"bob@" + 
USERS_DOMAIN + "\"}]," +
+                "        \"bcc\": [{ \"name\": \"BOB\", \"email\": \"" + 
bccRecipient + "\"}]," +
                 "        \"cc\": [{ \"name\": \"ALICE\"}]," +
                 "        \"subject\": \"Thank you for joining example.com!\"," 
+
                 "        \"textBody\": \"Hello someone, and thank you for 
joining example.com!\"," +


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to