chibenwa commented on code in PR #2801:
URL: https://github.com/apache/james-project/pull/2801#discussion_r2336297138
##########
server/protocols/jmap-rfc-8621/src/test/java/org/apache/james/jmap/mailet/filter/JMAPFilteringTest.java:
##########
@@ -1129,4 +1130,56 @@ void
orShouldNotMatchWhenNoConditionsAreMet(JMAPFilteringTestSystem testSystem)
assertThat(mail.getAttribute(RECIPIENT_1_USERNAME_ATTRIBUTE_NAME).isEmpty()).isTrue();
}
+
+ @Test
+ void startWithAddressMailMatched(JMAPFilteringTestSystem testSystem)
throws Exception {
+ testSystem.defineRulesForRecipient1(
+ Rule.Condition.of(FROM, START_WITH, USER_1_ADDRESS.substring(0, 2))
Review Comment:
Add a test from 2->5 that do not match
(distinguish startWith and contains)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]