Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

E-mailing a list as seperate lines

Lasivian Leandros
Hopelessly Obsessed
Join date: 11 Jul 2005
Posts: 238
12-06-2005 09:05
Now i'm sure I could use a ton of single commands for each line of the list seperately, but that seems incredibly stupid.

Is it possible to change a list to a string and have the list items seperated by carriage returns and e-mail that?

Thanks
_____________________
From: someone
"SL is getting to be like a beat up old car with a faulty engine which keeps getting a nice fresh layer of paint added on, while the engine continues to be completely unreliable." - Kex Godel
Haravikk Mistral
Registered User
Join date: 8 Oct 2005
Posts: 2,482
12-06-2005 09:11
Presumably using the \n string would do that? Like:
llEmail(me@myurl.com, "A list!", llDumpList2String(listName, "\n";));
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
12-06-2005 12:27
Where are you sending the e-mail? If it's to another scripted SL object, I'd suggest sending the whole list as one string and then parsing it on receipt.

You could run a loop...kind of a ...for each item in list x, string = string + list item x + \n.
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
SiRiS Asturias
Chaotic Coder
Join date: 27 Sep 2005
Posts: 93
Limitations...
12-06-2005 12:48
Which ever method you choose, just remember your always bound to:

address and subj are limited to 78 characters each.
message is limited to 1023 characters.
_____________________
Proud founder of:
S3 - Self Storage Systems
S3storage.net (Coming Soon!)

SLBoutique.com
SLExchange.com - Find What You Need, When You Need It.

"Light travels faster than sound. This is why some people appear bright, until you hear them speak."
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
12-06-2005 15:38
Sending out of world you can have more than 1023 characters, I think it's 4096, but that includes the 'header' text.
SiRiS Asturias
Chaotic Coder
Join date: 27 Sep 2005
Posts: 93
12-06-2005 15:55
From: Kenn Nilsson
Where are you sending the e-mail? If it's to another scripted SL object, I'd suggest sending the whole list as one string and then parsing it on receipt.

You could run a loop...kind of a ...for each item in list x, string = string + list item x + \n.
Yes. There is also an automatic insertion of the \n as stated below when communicating off-world:

"The length of the entire email is limited to 4096 characters, including the subject, message, and other headers (such as address), as well as CR + LF and the prepended lines to the body.

In the message, the "\n" escape sequence is translated into "\r\n" (CR + LF) in order to generate RFC 2821 compatible line terminators. If you don't include them yourself, such a line terminator is automatically inserted after every 998 (exact number) characters (as required by the SMTP standard)."

Don't forget to take this into account on the other end when parsing the string segments back together.
_____________________
Proud founder of:
S3 - Self Storage Systems
S3storage.net (Coming Soon!)

SLBoutique.com
SLExchange.com - Find What You Need, When You Need It.

"Light travels faster than sound. This is why some people appear bright, until you hear them speak."