Hey Tang,
 
If you are using Wildfire then you can use the contentFilter plugin: http://www.jivesoftware.org/wildfire/plugins.jsp. Out of the box the plugin can filter messages and presences. If you need to filter IQ packets you can either modify the plugin or just copy the idea and build a new one. You can read the Plugin Development Guide: http://www.jivesoftware.org/builds/wildfire/docs/latest/documentation/plugin-dev-guide.html to learn how easy you can build plugins.
 
Anyway, this plugin is not following any JEP. Moreover, I don't remember seeing any JEP about content filtering.
 
Regards,
 
  -- Gato
"Tang Yongbo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]...

Thanks Remko and Michal "vorner" Vaner

But my question is not just blocking somebody's message. I want to make a filter rule, and apply it to the server to block anything as I like, including the IQ/message/presence package.

For example, If Server receives something as followed and I have made a rule to filter the elements marked in blue before, the client will get the xml package as followed.

Is there a JEP define the protocol?

 

Server received:

<iq type='result'
    from='[EMAIL PROTECTED]'
    to='[EMAIL PROTECTED]/balcony'
    id='info3'>
  <query xmlns='http://jabber.org/protocol/disco#info'>
    <identity
        category='conference'
        type='text'
        name='Romeo and Juliet, Act II, Scene II'/>
    <feature var='http://jabber.org/protocol/disco#info'/>
    <feature var='http://jabber.org/protocol/muc'/>
  </query>

</iq>

 

Client received:

<iq type='result'

    from='[EMAIL PROTECTED]'
    to='[EMAIL PROTECTED]/balcony'
    id='info3'>
  <query xmlns='http://jabber.org/protocol/disco#info'>
    <identity
        category='conference'
        type='text'
        name='Romeo and Juliet, Act II, Scene II'/>
    <feature var='http://jabber.org/protocol/muc'/>
  </query>

</iq>

 

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michal vorner Vaner
Sent: Monday, June 19, 2006 15:05
To: Jabber software development list
Subject: Re: [jdev] Do jabber have a protocol about how to filter some uselessmessage? What is the JEP name?

 

On Mon, Jun 19, 2006 at 02:53:38PM +0800, Tang Yongbo wrote:

>    Do anyone know the JEP which defines the protocol about how to filter some

>    message (e.g.  I wish to pull some guy to the blacklist and never get his

>    message forever)?

 

XMPP-IM, section about privacy lists.

 

--

 

There are two types of optimizations. The ones which make the program

slower and the ones which make the user red by missing features.

 

Michal "vorner" Vaner

Reply via email to