[JDEV] Server-side timestamping of all messages?

Robert Norris rob at cataclysm.cx
Sun Feb 1 15:41:29 CST 2004


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: rob at cataclysm.cx                Web: http://cataclysm.cx/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20040202/8c4b0531/attachment-0002.pgp>


More information about the JDev mailing list