[jdev] Re: Do jabber have a protocol about how to filter someuselessmessage? What is the JEP name?

Gaston Dombiak gaston at jivesoftware.com
Mon Jun 19 09:29:15 CDT 2006


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" <yongbo.tang at utstar.com> wrote in message news:FED48428A0F60B4B8A513003E055F41801A34F59 at CNMAIL11.cn.utstarcom.com...
  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='balconyscene at plays.shakespeare.lit'    to='juliet at capulet.com/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='balconyscene at plays.shakespeare.lit'    to='juliet at capulet.com/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: jdev-bounces at jabber.org [mailto:jdev-bounces at jabber.org] 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20060619/d91c0ea8/attachment-0002.htm>


More information about the JDev mailing list