Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Silly Email Event Inconsistency

Dougal Jacobs
Registered User
Join date: 16 Jun 2004
Posts: 21
03-29-2005 17:03
with llEmail you can send an email up to 4096 characters long (including the section inserted by the system). However... the email event can only return 1024 characters... This means an object can email out emails that are 4 times longer than another script can read. I dont see a reason for it personally seeing how all that other 3k of information just goes completely down the drain... wasted... useless... kaput... no good... I think you understand my message. I believe it could be fixed with a simple variable change in the code to change the email event returned string to 4096 characters in length instead. If all goes well I would think it would take 5 minutes... Please?

Edit: I realse now that a 4096 character email event would be very restrictive to scripts with a low amount of free memory. Mabye you could add a llGetEmail4K() function?
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
04-02-2005 00:21
Or perhaps an llOffsetEmail(string address, string subject, integer timestamp, integer offset) that calls the email event again, with the message offset by the specified number of characters. This way scripts can "piece" together long emails or process more from the same email if they so desire.

On second thought, this might be troublesome, since there will be no way for the system to know when the script is done with the message. Perhaps this problem entails the addition of llDiscardEmail(string address, string subject, integer timestamp) as well.

Sadly, I think changing the system so emails aren't deleted after a llGetNextEmail/email event call will break certain scripts. The implementation of a completely new llGetNextEmail-like function would solve this.
==Chris
_____________________
October 3rd is the Day Against DRM (Digital Restrictions Management), learn more at http://www.defectivebydesign.org/what_is_drm