Test: Query an addressbook for vcards having an EMAIL property that does NOT end in @abcd.com Expected result: Only contacts with an EMAIL property that does NOT end in @abcd.com are returned. Actual result: SOGo returns contacts with an EMAIL property ending in @abcd.com, i.e. it ignores the negate-condition="yes" attribute to the text-match. RFC 6352 references: - 10.5.4 (text-match XML element): The "negate-condition" attribute is used to indicate that this test returns a match if the text matches, when the attribute value is set to "no", or return a match if the text does not match, if the attribute value is set to "yes". [2024-04-01 07:53:23]: [2 NFO] "REPORT /SOGo/dav/mikey@dev.mike2k.de/Contacts/personal/ HTTP/1.1" 207 >>>>>>>> REPORT /SOGo/dav/mikey@dev.mike2k.de/Contacts/personal/ HTTP/1.1 Content-Length: 507 User-Agent: GuzzleHttp/7 Host: etain.mike2k.de Depth: 1 Content-Type: application/xml; charset=UTF-8 @abcd.com <<<<<<<< HTTP/1.1 207 Multi-Status Server: nginx Date: Mon, 01 Apr 2024 07:53:23 GMT Content-Type: text/xml; charset=utf-8 Content-Length: 738 Connection: keep-alive Cache-Control: no-cache Pragma: no-cache X-Frame-Options: SAMEORIGIN /SOGo/dav/mikey@dev.mike2k.de/Contacts/personal/sabre-vobject-88a2b704-2ad4-4d90-bb5f-5e618fe5a3ee.vcf"gcs00000000"BEGIN:VCARD VERSION:3.0 PRODID:-//Sabre//Sabre VObject 4.5.4//EN UID:sabre-vobject-88a2b704-2ad4-4d90-bb5f-5e618fe5a3ee FN:CardDavClient Test1243750715 N:Test1243750715;CardDavClient NICKNAME:Jonny1 EMAIL:maxmu@abcd.com X-CUSTOMPROP;X-SPACEPARAM="HELLO, WORLD";X-CUSTOMPARAM=HOME,WORK:foobar END:VCARDHTTP/1.1 200 OK -------- NULL