llGetNextEmail

From Second Life Wiki
Revision as of 06:48, 14 April 2009 by Strife Onizuka (talk | contribs) (Changing the tense, passed tense is awkward.)
Jump to navigation Jump to search

Summary

Function: llGetNextEmail( string address, string subject );

Get the next queued email that comes from address, with specified subject.

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

If address or subject an empty string, then that parameter will be treated as a wildcard.

Specification

The email event will be triggered only if address and subject match

  • Neither parameter is case sensitive.
  • If a parameter is an empty string, then that parameter will be treated as a wildcard, matches anything.
  • If both parameters are empty strings then the first email in the queue will be matched.
  • The email queue is FIFO.

Examples

<lsl> default {

   state_entry() {
       llSetTimerEvent(1.0); //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 );