Difference between revisions of "LlGetNextEmail"

From Second Life Wiki
Jump to navigation Jump to search
(Add parameter descriptions)
(Add Specification section and move some notes to there.)
Line 3: Line 3:
|sort=GetNextEmail
|sort=GetNextEmail
|func=llGetNextEmail
|func=llGetNextEmail
|p1_type=string|p1_name=address|p1_desc=Sender's mail address (not case sensitive)
|p1_type=string|p1_name=address|p1_desc=Sender's mail address
|p2_type=string|p2_name=subject|p2_desc=Mail subject (not case sensitive)
|p2_type=string|p2_name=subject|p2_desc=Mail subject
|func_footnote
|func_footnote
|func_desc=Get the next waiting [[email]] with appropriate sender '''address''' and/or '''subject''' (if {{HoverText|blank|an empty string: {{String}}}} they are ignored)
|func_desc=Get the next waiting email with appropriate sender address and subject.
|return_text
|return_text
|spec
|spec=
* If a parameter was left {{HoverText|blank|an empty string: {{String}}}}, 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.
|caveats=
|caveats=
|constants
|constants

Revision as of 05:33, 13 April 2009

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 );