On Fri, Jan 30, 2004 at 03:17:57PM +1100, Trejkaz Xaoza wrote:
> Is there some way to get timestamps (sort of like jabber:x:delay) on every message
> which ever leaves the server?
> 
> My application apparently needs the timestamps which are displayed to the user, to
> be the time on the server, rather than the time on the client.
> 
> Any method with what you might consider to be reasonable development time is
> acceptable, but preferably simple.  Ideally there is a configuration option in
> jabberd2 which does it.  Much less ideally, I would have to write my own c2s
> module, which would be completely nuts since I'm not in the mood to learn how
> to write a c2s component.  Somewhere inbetween those two extremes would
> probably be fine. :-)

A SM module for jabberd2 would be the best place for this. Take a look
at mod_offline to see how the x:delay stamps are generated. You'd want
to look at either modifying mod_deliver, or writing a new module that
uses the out-sess chain.

Rob.

-- 
Robert Norris                                       GPG: 1024D/FC18E6C2
Email+Jabber: [EMAIL PROTECTED]                Web: http://cataclysm.cx/

Attachment: signature.asc
Description: Digital signature

Reply via email to