llGetNextEmail

From Second Life Wiki
Revision as of 05:33, 13 April 2009 by MasterOf Perl (talk | contribs) (Add Specification section and move some notes to there.)
Jump to navigation Jump to search

Summary

Function: llGetNextEmail( string address, string subject );

Get the next waiting email with appropriate sender address and subject.

• string address Sender's mail address
• string subject Mail subject

Specification

  • If a parameter was left blank, it will be treated as a wildcard. If both parameters were not blank, both matching must be successful.
  • Parameters are not case sensitive.
  • email event will be triggered only when the matching was successful.

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

•  email

Functions

•  llEmail

Deep Notes

Search JIRA for related Issues

Signature

function void llGetNextEmail( string address, string subject );