[erlang-questions] Mongoose IM Documentation

Antoine Koener antoine.koener@REDACTED
Sun Feb 9 19:40:48 CET 2014


Hello Kelly:

You may look at the code in "ejabberd_sm.erl" file, and specifically to this hook:

                             ejabberd_hooks:run(offline_message_hook,
                                                       LServer,
                                                       [From, To, Packet]);

Thus modules: mod_offline.erl and mod_offline_odbc.erl should get you started.

Hope it helps :-)

Le 7 févr. 2014 à 22:43, Kelly Wong <kjw0188@REDACTED> a écrit :

> Hi Michal,
> 
> Thanks for the link.  I'm trying to figure out what hooks I can set and when they're called.  The end goal is to write a plugin that can send an Apple notification service message to a user who is not online.  I was thinking I could write a plugin that intercepts messages to offline users.  Is that the right way to go about things?
> 
> Thanks,
> Kelly Wong
> 
> 
> On Wed, Feb 5, 2014 at 11:18 PM, Michal Piotrowski <michal.piotrowski@REDACTED> wrote:
> Hello Kelly,
> 
> There are some examples on our github: https://github.com/esl/MongooseIM.
> The default installation of MongooseIM works with mnesia as a database.
> What exactly do you need to know?
> 
> BTW, the config file is in most cases compatible with the one in ejabberd 2.1.x.
> 
> Best regards
> Michal Piotrowski
> michal.piotrowski@REDACTED
> 
> 
> On 05 Feb 2014, at 03:10, Kelly Wong <kjw0188@REDACTED> wrote:
> 
>> Hello,
>> 
>> I'm trying to setup Mongoose IM, but for the life of me can't find any documentation for it.  Can anyone point me in the right direction?
>> 
>> Thanks,
>> Kelly Wong
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
> 
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140209/ca0737a7/attachment.htm>


More information about the erlang-questions mailing list