Talk:LlEmail

From Second Life Wiki
Revision as of 05:35, 20 May 2007 by Lucius Obviate (talk | contribs) (Header Removal in Messages sent Via llEmail)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

It's note-worthy to add that the following line of code can be used in the email event to remove headers from the message.

message = llDeleteSubString(message, 0, llSubStringIndex(message, "\n\n") + 1);

Example:


default
{
 state_entry()
  {
   email(string time, string address, string subj, string message, integer num_left)
    {
     message = llDeleteSubString(message, 0, llSubStringIndex(message, "\n\n") + 1);
     llSay(0,message);
    }
  }
}

--Lucius Obviate 05:35, 20 May 2007 (PDT)