<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<tt>If I wanted to take jabberd and add a tag which cc's all presence and
messages to a server component, please let me know if what I'm planning
on doing makes sense:</tt>
<br><tt>(this is all for 1.4.2)</tt><tt></tt>
<p><tt>I want to make a <src>/jabberd/base/base_carboncopy.c</tt><tt></tt>
<p><tt>Then put a <carboncopy>some_jid_or_internal_component_id</carboncopy></tt><tt></tt>
<p><tt>high up in the sessions service, so it sees everything.</tt>
<br><tt> <service id="sessions"></tt>
<br><tt> <host><jabberd:cmdline flag="h">localhost</jabberd:cmdline></host></tt>
<br><tt> <carboncopy>mycomponent.localhost</carboncopy></tt>
<br><tt>.....</tt>
<br><tt></tt> <tt></tt>
<p><tt>In base_carboncopy.c I want to do this: (this is the part I'd like
some advice on:</tt>
<br><tt>result base_forward_deliver(instance id, dpacket p, void* arg){</tt>
<br><tt> </tt>
<br><tt> if my packet is a message, or presence</tt>
<br><tt> copy it, wrap in route tag, and deliver to component
which is defined in the config.</tt>
<br><tt>}</tt>
<br><tt></tt> <tt></tt>
<p><tt>Any advice?</tt>
<br><tt>Thanks</tt>
<br><tt>-Dov</tt>
<br><tt></tt> <tt></tt>
<p><tt>--</tt>
<br><tt>This communication is intended for the addressee(s) and may contain
confidential and legally privileged information. We do not waive
confidentiality or privilege by mistransmission. If you have received
this communication in error, any use, dissemination, printing or copying
is strictly prohibited; please destroy all electronic and paper copies
and notify the sender immediately.</tt>
<br><tt></tt> </html>