Its pasting mistake of mine.
I removed the jid and name part and blocked till the server sends response.
Stil client can receive messages from the blocked user.
Moreover if i set the action="allow", still the privacy list contains the
blocked user.

--
SEND:
-----------------------------------
<iq type="set" id="399421407678"> <query xmlns="jabber:iq:privacy"> <list
name="BlockedList"> <item order="3" action="deny" value="
[EMAIL PROTECTED]" type="jid"> <message></message>
</item>
</list>
</query>
</iq>

-----------------------------------

RECV [59]:
------------------------------------
'<iq xmlns='jabber:client' id='399421407678' type='result'/>'
------------------------------------

SEND:
-----------------------------------
<iq type="get" id="208443682"> <query xmlns="jabber:iq:privacy"> <list
name="BlockedList"></list>
</query>
</iq>

-----------------------------------

RECV [242]:
------------------------------------
'<iq xmlns='jabber:client' id='208443682' type='result'><query
xmlns='jabber:iq:privacy'><list name='BlockedList'><item order='3'
action='deny' value='[EMAIL PROTECTED]'
type='jid'><message/></item></list></query></iq>'
------------------------------------
Blocked user: [EMAIL PROTECTED]

SEND:
-----------------------------------
</stream:stream>
-----------------------------------
--

On 3/2/07, Richard Dobson <[EMAIL PROTECTED]> wrote:


> SEND:
> -----------------------------------
> <iq type="set" id="6562366909"> <query xmlns="jabber:iq:privacy">
> <list name="BlockedList"> <item order="23" action="deny"
> value="[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>" type="jid"
> jid="[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>" name="Ganesh Kundapur">
> <message></message>
> </item>
> </list>
> </query>
> </iq>
>
> -----------------------------------
>
> SEND:
> -----------------------------------
> <iq type="get" id="6607167262"> <query xmlns="jabber:iq:privacy">
> <list name="BlockedList"></list>
> </query>
> </iq>

I can see two problems here, again you have ignored our feedback and
included illegal attributes in your item, "jid" and "name" are not
valid, as Remko has said please check the spec *very carefully* and if
you continue to ignore our feedback its likely we will stop helping you
(as what's the point in helping someone if they ignore it). Secondly,
you are requesting the privacy list before the server has responded
saying that its updated it, although it will probably work you shouldn't
really do that as you don't know if your update to the privacy list has
worked or not.

Richard



Reply via email to