Hi Victor,

On 22 January 2014 14:49, Victor <victor...@gmail.com> wrote:
> Hello all,
>
> I am looking for the option to route messages send to server, like this:
>
> <message
>     from='northumberl...@shakespeare.lit'
>     to='royalty.england.lit'>
>   <body>My lord, dispatch; read o'er these articles.</body>
> </message>

If you are writing a module this is very easy. You simply have to
catch the event "message/host". You can see an example module at:
http://prosody.im/doc/developers/modules (just change "message/bare"
to "message/host").

You can read more about events at https://prosody.im/doc/developers/events

Hope this helps!

Regards,
Matthew

-- 
You received this message because you are subscribed to the Google Groups 
"prosody-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prosody-dev+unsubscr...@googlegroups.com.
To post to this group, send email to prosody-dev@googlegroups.com.
Visit this group at http://groups.google.com/group/prosody-dev.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to