All,
I am trying to apply some filters to a createCursorRequest to search for
messages. A single FilterEntry works fine, but using a compound
FilterGroup() has problems at time.

Below is sample, trying to filter on received appointments, with the php
object, and xml request. The query returns a cursor that returns *all*
messages (including some appointments :-) but also lots of Mail and Sent
items as well). Ie it seems the filter fails.

What am I missing?
Is this because the type of the filter and elements are not set properly in
the resulting SOAP request (FilterGroup and FilterEntry, respectively) ?

Thanks in advance,

Johan
---------------
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://schemas.novell.com/2005/01/GroupWise/methods"
xmlns:ns2="http://schemas.novell.com/2005/01/GroupWise/types">
<SOAP-ENV:Header>
<ns2:session>X4Ro2HSp5TIill0d</ns2:session>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:createCursorRequest>
<ns1:container>folders</ns1:container>
<ns1:view>default peek</ns1:view>
<ns1:filter>
<ns2:op>and</ns2:op>
<ns2:element>
<ns2:op>eq</ns2:op>
<ns2:field>source</ns2:field>
<ns2:custom/>
<ns2:value>received</ns2:value>
<ns2:date/>
</ns2:element>
<ns2:element>
<ns2:op>eq</ns2:op>
<ns2:field>@type</ns2:field>
<ns2:custom/>
<ns2:value>Appointment</ns2:value>
<ns2:date/>
</ns2:element>
</ns1:filter>
</ns1:createCursorRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

------------------------
FilterGroup Object
(
[element] =&gt; Array
(
[0] =&gt; FilterEntry Object
(
[op] =&gt; eq
[field] =&gt; source
[custom] =&gt;
[value] =&gt; received
[date] =&gt;
)

[1] =&gt; FilterEntry Object
(
[op] =&gt; eq
[field] =&gt; @type
[custom] =&gt;
[value] =&gt; Appointment
[date] =&gt;
)

)

[op] =&gt; and
)
------------------