[JDEV] How message filter service works
Ritu Khetan
ritu at netcore.co.in
Tue Apr 9 00:07:26 CDT 2002
Hi Paul,
There is a small documentation I have written on
this..attaching it below.
The filter service allows users to manage and control the
incoming messages at the jabber server level i.e. before
they reach the recipient?s client.This can be done by
specifying a set of rules which are nothing but a
combination of conditions and actions. Thus, for each
incoming message, the message filter goes through the
rules for that user and if any of the conditions are
satisfied, the appropriate actions specified are
undertaken. Here, the message filter service stops going
through further rules unless the action specified is
?continue?. Each user?s filter is stored on the server
using the xdb component in the user?s xml file.
E.g.
<query xmlns=\'jabber:iq:filter\' xdbns=\'jabber:iq:filter\'>
<rule name=\'ritu?s test rule\'>
<from>veer at 192.168.2.58</from>
<reply>Hi, i am away on holiday.will get back asap.</reply>
</rule>
</query>
Here, if a veer sends a message to ritu, an auto reply
would be sent to him enclosing the above statement.
However, if I enclose a continue statement like the one
below,
<query xmlns=\'jabber:iq:filter\' xdbns=\'jabber:iq:filter\'>
<rule name=\'ritu?s test rule\'>
<from>veer at 192.168.2.58</from>
<reply>Hi, i am away on holiday.will get back asap.</reply>
</continue>
</rule>
</query>
then the original message should reach the original
destination too, however when I tried this , this did
not happen.So had posted a message regarding this on
jdev, but hvn\'t recevied any response yet.
Hope the above info is useful to u.
Regards,
Ritu
Quoting Paul Castillo <pcastillo at ggcargo.com>:
> Someone knows where i can found information and
examples about message
> filter service.
> There are no examples in docs.jabber.org
>
> Paul Castillo
> Departamento de Sistemas
> G&G Cargo Service
> http://www.ggcargo.com
> pcastillo at ggcargo.com
> 593.02.2485040 Ext.226
>
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
>
More information about the JDev
mailing list