I made the changes....didn't test it in world tho. This will use the first line of the notecard for the email address.
//start_unprocessed_textstring NOTECARD_NAME = "userKeys";string MESSAGE;list glItems;
string email;
key kQuery;integer iLine = 0;default { state_entry() { MESSAGE = llGetRegionName() + " " + (string)llGetPos(); } changed(integer change) { email=""; kQuery = llGetNotecardLine(NOTECARD_NAME, iLine = 0); glItems = []; } dataserver(key query_id, string data) { if (query_id == kQuery) { if (data == EOF) { llEmail(email,"NOTICE",llDumpList2String(glItems, ", ")); } else {
if(email=="") email=data;
else {
glItems += data; kQuery = llGetNotecardLine(NOTECARD_NAME, ++iLine);
}
} } }}