[Opensim-users] Offline IM to email module
ssm2017
ssm2017 at gmail.com
Wed Oct 13 16:44:33 UTC 2010
hello
as said in irc , you need to have the "osprofile" module to store the
user preference in the database first (the user can select in viewer
preferences if the message can be emailed)
then you need to tell in your opensim.ini the offline message url (use
the same url for mute messages) (see
http://opensimulator.org/wiki/Offline_Messaging)
then, the sim will send an xml document to the url script you
mentionned (your script can be php, ruby, pyhthon etc...)
the message sent is like that :
<GridInstantMessage
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<fromAgentID>UUID of the user sending message</fromAgentID>
<fromAgentName>NAME of sender</fromAgentName>
<toAgentID>UUID of destination user</toAgentID>
<dialog>INTEGER defining message type</dialog>
<fromGroup>true</fromGroup>
<message>here is the message sent</message>
<imSessionID>UUID of the im session</imSessionID>
<offline>1</offline>
<Position><X>0</X><Y>0</Y><Z>0</Z></Position>
<binaryBucket>AA==</binaryBucket>
<ParentEstateID>100</ParentEstateID>
<RegionID>UUID of the region from where the message was sent</RegionID>
<timestamp>1286477676</timestamp>
</GridInstantMessage>
so you can use "simlexml" or something else to parse the message first
and then send the email or not
note : the <dialog/> element is also sending "typing" text that is 42,
so you should filter it :)
here is the code i have made to use it with drupal :
http://github.com/ssm2017/d4os/blob/master/io/d4os_io_services/d4os_io_services_offline_message/d4os_io_services_offline_message.module
but you can also take inspiration from other projects like wiredux :
http://forge.opensimulator.org/gf/project/opensimwi/scmsvn/?action=browse&path=%2Ftrunk%2Foffline.php&revision=84&view=markup
2010/10/13 Jor3l Boa <jor3l at foravatars.com>:
> Hey Andrew, The offline msg module is PHP, so look when the message is
> stored in the DB and send an email to that user, If you have the module
> working with 0.7 mail me and we can work this
>
> 2010/10/13 Andrew <andsim2 at gmail.com>
>>
>> hi there,
>>
>> i think i have ask before i cant remember, anyway.
>> i have been looking everywhere that do offline im to email. but i cannot
>> find and been asking Meta7 to provide that module, i cant get them to give.
>> so can anyone can make one or give me instruction how to make one. I'm not
>> very good programmer yet but still learning.
>> i am surprise no one has made one expect throu private grid like Meta7,
>> InWorldz, maybe OpenLife.
>> thank
>> Andsim
>> _______________________________________________
>> Opensim-users mailing list
>> Opensim-users at lists.berlios.de
>> https://lists.berlios.de/mailman/listinfo/opensim-users
>
>
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-users
>
>
More information about the Opensim-users
mailing list