Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003145 [opensim] [REGION] Script Functions major always 2009-02-12 17:42 2009-02-21 17:36
Reporter DoranZemlja View Status public  
Assigned To melanie
Priority normal Resolution fixed  
Status closed   Product Version 0.6.2
Summary 0003145: EmailModule.GetNextEmail() always returns null
Description ./trunk/OpenSim/Region/Environment/Modules/Scripting/EMailModules/EmailModule.c
s

GetNextEmail() function always returns null. This means llGetNextEmail will never trigger the LSL email event.

EmailModule.SendEmail should check the address for a "magic" address based on the grid name (i.e. @lsl.deepgrid.com or @lsl.osgrid.org or whatever) and route those emails to a service (Messaging?) instead of sending them out via SMTP.

EmailModule.GetNextEmail should check the service to see if it has email waiting.

Email queue should be limited to 50 entries per object, as on the LL main grid. Email older than a certain amount (a week?) should be discarded.

Additional Information
Tags No tags attached.
Git Revision
SVN Revision 0
Run Mode Grid (1 Region per Sim) , Grid (Multiple Regions per Sim)
Physics Engine BasicPhysics, PhysicsOfSimplicity, ODE, BulletX, PhysX, Other
Environment Unknown, Mono / Linux32, Mono / Linux64, Mono / Windows, Mono / OSX, .NET / Windows32, .NET / Windows64
Mono Version None
Attached Files ? file icon email.patch [^] (11,886 bytes) 2009-02-14 11:41
? file icon email2.patch [^] (8,923 bytes) 2009-02-14 16:31

- Relationships

-  Notes
(0009394)
melanie (administrator)
2009-02-12 17:44

Email reception is not implemented. Feel free to reopen this to submit a patch. Otherwise, I'm closing it to keep the list clean.
(0009441)
DoranZemlja (reporter)
2009-02-14 11:40

adding patch; it does local mail delivery on the same region, and there are comments for hooks for region-to-region email
(0009442)
Fly-Man- (developer)
2009-02-14 11:44
edited on: 2009-02-14 11:53

Please review this patch carefully,

Change Line 43 from:

Line 43:
+ m_InterObjectHostname = SMTPConfig.GetString("internal_object_host", "lsl.secondlife.com");

to:

Line 43:
+ m_InterObjectHostname = SMTPConfig.GetString("internal_object_host", "lsl.opensim.local");

(0009447)
melanie (administrator)
2009-02-14 13:23

There are a number of issues with this:
- Objects that havenever called llGetNextEmail should not have a queue, nor should email for them be saved at all
- Objects that have not called llGetNextEmail within 2 hours lose their email queue; what is in it gets deleted
- External email from objects contains no HTML, object email is always text only! LSL generates no HTML, so the remote mail implementation is wrong
- The local mail hostname needs to be a configuration option.

I'm still going to commit it, since it's an optional module that is not enabled by default, but I would like work on this to continue as outlined above and I willbe happy to commit any patches that aim to achieve this.
(0009448)
svn (developer)
2009-02-14 13:25

melanie committed related code in r8394

Thank you, DoranZemlja, for a patch that implements local inter-object email
delivery.
Leaving Mantis 0003145 open so that more code can be added.

see more at - http://opensimulator.org/cgi-bin/viewvc.cgi?view=rev&revision=8394 [^]
(0009457)
DoranZemlja (reporter)
2009-02-14 15:31

Melanie --

Please note, original code (before my patch) did the HTML external email; I knew it wasn't right, but I left it unchanged for the external email case. I assumed whoever was before me had some good reason for it.
(0009458)
melanie (administrator)
2009-02-14 15:33

It's wrong, since these emails are, 99%, machine parsed and the existing parsers will be broken by that HTML stuff.
Would be great if you could remove that when you continnue to work on it.
(0009460)
DoranZemlja (reporter)
2009-02-14 16:34

added email2.patch

per Fly-Man's comment, changed default internal_object_host to lsl.opensim.local

per melanie's comment, moved queue creation to GetNextEmail and drop messages for objects with no queue. Also removed HTML from external emails, and expire inactive queues after 2 hours.

Local mail hostname was already a config option in previous patch. I updated OpenSim.ini.example to make this more clear.
(0009461)
svn (developer)
2009-02-14 17:06

melanie committed related code in r8397

Thank you, DoranZemlja, for a patch that addresses some moe llGetNextEmail
issues.
Fixes Mantis 0003145.

see more at - http://opensimulator.org/cgi-bin/viewvc.cgi?view=rev&revision=8397 [^]
(0009462)
melanie (administrator)
2009-02-14 17:07

A point to think about: if lsl.secondlife.com is the default, then existing scripts will run unmodified, but scripts in OpenSim will not be able to communicate with objects in SL. If the default is something else, all scripts will need to be modified.

- Issue History
Date Modified Username Field Change
2009-02-12 17:42 DoranZemlja New Issue
2009-02-12 17:42 DoranZemlja SVN Revision => 0
2009-02-12 17:42 DoranZemlja Run Mode => Grid (1 Region per Sim) , Grid (Multiple Regions per Sim)
2009-02-12 17:42 DoranZemlja Physics Engine => BasicPhysics, PhysicsOfSimplicity, ODE, BulletX, PhysX, Other
2009-02-12 17:42 DoranZemlja Environment => Unknown, Mono / Linux32, Mono / Linux64, Mono / Windows, Mono / OSX, .NET / Windows32, .NET / Windows64
2009-02-12 17:42 DoranZemlja Mono Version => None
2009-02-12 17:44 melanie Status new => resolved
2009-02-12 17:44 melanie Resolution open => suspended
2009-02-12 17:44 melanie Assigned To => melanie
2009-02-12 17:44 melanie Note Added: 0009394
2009-02-14 11:40 DoranZemlja Status resolved => feedback
2009-02-14 11:40 DoranZemlja Resolution suspended => reopened
2009-02-14 11:40 DoranZemlja Note Added: 0009441
2009-02-14 11:41 DoranZemlja File Added: email.patch
2009-02-14 11:44 Fly-Man- Note Added: 0009442
2009-02-14 11:45 Fly-Man- Status feedback => patch included
2009-02-14 11:53 Fly-Man- Note Edited: 0009442
2009-02-14 13:23 melanie Note Added: 0009447
2009-02-14 13:25 svn Checkin
2009-02-14 13:25 svn Note Added: 0009448
2009-02-14 15:31 DoranZemlja Note Added: 0009457
2009-02-14 15:33 melanie Note Added: 0009458
2009-02-14 16:31 DoranZemlja File Added: email2.patch
2009-02-14 16:34 DoranZemlja Note Added: 0009460
2009-02-14 17:06 svn Checkin
2009-02-14 17:06 svn Note Added: 0009461
2009-02-14 17:06 svn Status patch included => resolved
2009-02-14 17:06 svn Resolution reopened => fixed
2009-02-14 17:07 melanie Note Added: 0009462
2009-02-21 17:36 chi11ken Status resolved => closed


Mantis 1.1.1[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker