Difference between revisions of "LlGetNextEmail"

From Second Life Wiki
Jump to: navigation, search
m (formatted example)
m (added sort-key)
Line 1: Line 1:
 
{{LSL_Function
 
{{LSL_Function
 
|func_id=120|func_sleep=0.0|func_energy=10.0
 
|func_id=120|func_sleep=0.0|func_energy=10.0
 +
|sort=GetNextEmail
 
|func=llGetNextEmail|p1_type=string|p1_name=address|p2_type=string|p2_name=subject
 
|func=llGetNextEmail|p1_type=string|p1_name=address|p2_type=string|p2_name=subject
 
|func_footnote
 
|func_footnote

Revision as of 07:50, 16 August 2008

Summary

Function: llGetNextEmail( string address, string subject );

Get the next waiting email with appropriate address and/or subject (if blank they are ignored)

• string address
• string subject

Examples

<lsl> default {

   state_entry() {
       llSetTimerEvent(1); //Don't go much lower than this...
   }
   
   timer() {
       llGetNextEmail("", ""); //Check for emails
   }
   
   email(string time, string address, string subj, string message, integer num_left) {
    
        llOwnerSay("I got an email: " + subj + "\n" + message);
      
   }

}

</lsl>

See Also

Events

Deep Notes

Search JIRA for related Issues

Signature

function void llGetNextEmail( string address, string subject );