CheckJID hook ?
Michael Scherer
misc at mandriva.org
Thu Nov 16 09:32:02 UTC 2006
Le jeudi 16 novembre 2006 09:47, Martin Atkins a écrit :
> Michael Scherer wrote:
> > Hi.
> >
> > The HookDocs.pm module speak of a CheckJID hook, but it seems to be used
> > nowhere, nor called at all.
> >
> > Am I missing some tricky ( or maybe obvious ) stuff, or this is not
> > implemented yet ?
> >
> > What would be the semantic of such hook ?
> >
> > I see one usage for the moment, offline delivery
>
> I'm really just guessing, but I think CheckJID is a leftover from the
> earlier "subdomain" code (which is not to be confused with
> <Subdomain ...> config blocks). Or maybe not...
>
> But anyway, for offline delivery I guess you could:
> * Implement a Delivery plugin which checks presence and does logging
> if the user is offline, or just declines if the user is online
But how do you know that the user exist ?
If someone want to contact foo at example.com and , for some reason type
bar at example.com, I think the server should not store the message offline if
there is no bar at example.com account.
> * Check presence by using $vhost->find_jid and friends
> * Use the OnInitialPresence hook to transmit the stored messages
> when the user connects.
--
Michael Scherer
More information about the Djabberd
mailing list